mirror of
https://github.com/bitcoin/bips.git
synced 2026-10-19 19:29:18 +00:00
bip-138 pad individual secrets with decoys
This commit is contained in:
@@ -276,6 +276,12 @@ The `INDIVIDUAL_SECRETS` section follows this format:
|
||||
Note: the individual secrets vector should not contain duplicates. Implementations
|
||||
MAY deduplicate secrets during encoding or parsing.
|
||||
|
||||
Encoders SHOULD append random decoy `INDIVIDUAL_SECRET` entries to hide the exact
|
||||
number of real decryption keys. The total count SHOULD be rounded up to the
|
||||
smallest bucket greater than or equal to the real count, starting at 5 and doubling
|
||||
for each following bucket: 5, 10, 20, and so on. Decoders do not distinguish real
|
||||
entries from decoys; they try each entry until one decrypts the payload.
|
||||
|
||||
#### Encryption
|
||||
|
||||
`ENCRYPTION`: 1-byte unsigned integer identifying the encryption algorithm.
|
||||
|
||||
Reference in New Issue
Block a user