Pack a vector of bits into bytes, eight bits per byte, least significant bit first.
Declared in <merkleblock.h>
std::vector<unsigned char>
BitsToBytes(std::vector<bool> const& bits);
The packed bytes; the final byte is zero-padded when the bit count is not a multiple of eight.
| Name | Description |
|---|---|
| bits | The bit sequence to pack. |