@ethereumjs/util / bytesToBits
bytesToBits(
bytes,bitLength?):number[]
Defined in: packages/util/src/bytes.ts:569
Converts a Uint8Array of bytes into an array of bits.
Uint8Array
The input byte array.
number
The number of bits to extract from the input bytes.
number[]
An array of bits (each 0 or 1) corresponding to the input bytes.