1
0
mirror of https://github.com/bitcoin/bips.git synced 2025-09-22 13:51:38 +00:00

Merge pull request #1939 from ethicnology/master

BIP85: replace Base64 by Base85 in PWD BASE85 section
This commit is contained in:
Jon Atack 2025-08-21 08:48:35 -07:00 committed by GitHub
commit 3f2a403f69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -292,11 +292,11 @@ The derivation path format is: <code>m/83696968'/707764'/{pwd_len}'/{index}'</co
`20 <= pwd_len <= 86`
[https://datatracker.ietf.org/doc/html/rfc4648 Base64] encode all 64 bytes of entropy.
Remove any spaces or new lines inserted by Base64 encoding process. Slice base64 result string
Remove any spaces or new lines inserted by Base64 encoding process. Slice Base64 result string
on index 0 to `pwd_len`. This slice is the password. As `pwd_len` is limited to 86, passwords will not contain padding.
Entropy calculation:<br>
R = 64 (base64 - do not count padding)<br>
R = 64 (Base64 - do not count padding)<br>
L = pwd_len<br>
Entropy = log2(R ** L)<br>
@ -330,7 +330,7 @@ The derivation path format is: <code>m/83696968'/707785'/{pwd_len}'/{index}'</co
`10 <= pwd_len <= 80`
Base85 encode all 64 bytes of entropy.
Remove any spaces or new lines inserted by Base64 encoding process. Slice base85 result string
Remove any spaces or new lines inserted by Base85 encoding process. Slice Base85 result string
on index 0 to `pwd_len`. This slice is the password. `pwd_len` is limited to 80 characters.
Entropy calculation:<br>