bip-138 pad individual secrets with decoys

This commit is contained in:
pythcoiner committed 2026-07-15 00:00:09 -04:00
1 parent fb52eaab03
commit 1e776e7a72
1 file changed
+6
+6
View File
@@ -276,6 +276,12 @@ The `INDIVIDUAL_SECRETS` section follows this format:
Note: the individual secrets vector should not contain duplicates. Implementations Note: the individual secrets vector should not contain duplicates. Implementations
MAY deduplicate secrets during encoding or parsing. 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
`ENCRYPTION`: 1-byte unsigned integer identifying the encryption algorithm. `ENCRYPTION`: 1-byte unsigned integer identifying the encryption algorithm.