mirror of
https://github.com/bitcoin/bips.git
synced 2025-05-12 12:03:29 +00:00
BIP 158: Specify endianness of block hash to k conversion.
This commit is contained in:
parent
ab53d7dcfa
commit
fc511f11c6
@ -305,9 +305,10 @@ Empirical analysis also shows that was chosen as these parameters minimize the
|
||||
bandwidth utilized, considering both the expected number of blocks downloaded
|
||||
due to false positives and the size of the filters themselves.
|
||||
|
||||
The parameter <code>k</code> MUST be set to the first 16 bytes of the hash of
|
||||
the block for which the filter is constructed. This ensures the key is
|
||||
deterministic while still varying from block to block.
|
||||
The parameter <code>k</code> MUST be set to the first 16 bytes of the hash
|
||||
(in standard little-endian representation) of the block for which the filter is
|
||||
constructed. This ensures the key is deterministic while still varying from
|
||||
block to block.
|
||||
|
||||
Since the value <code>N</code> is required to decode a GCS, a serialized GCS
|
||||
includes it as a prefix, written as a <code>CompactSize</code>. Thus, the
|
||||
|
Loading…
x
Reference in New Issue
Block a user