Skip to content

BIP85: replace Base64 by Base85 in PWD BASE85 section#1939

Merged
jonatack merged 2 commits into
bitcoin:masterfrom
ethicnology:master
Aug 21, 2025
Merged

BIP85: replace Base64 by Base85 in PWD BASE85 section#1939
jonatack merged 2 commits into
bitcoin:masterfrom
ethicnology:master

Conversation

@ethicnology

@ethicnology ethicnology commented Aug 20, 2025

Copy link
Copy Markdown
Contributor

Replace Base64 by Base85 encoder in the Pwd Base85 section, and use consistent capitalization.

@jonatack jonatack added the Proposed BIP modification PR by non-owner to update BIP content label Aug 20, 2025

@jonatack jonatack left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @akarve @scgbckbone @nvk @ethankosakovsky for feedback, this BIP is deployed by a few projects and is in final status (#1676), so no potentially breaking changes may be introduced.

@akarve

akarve commented Aug 20, 2025

Copy link
Copy Markdown
Contributor

@ethicnology in this spec the derived entropy, e.g. on both of the applications you commented on, is of fixed length. in what context would this be variable? there is trimming for the password length but that is explicitly post entropy. if you want truly variable password length and dictionaries (allows length of 1) maybe the new dice app is what you want?

@akarve

akarve commented Aug 20, 2025

Copy link
Copy Markdown
Contributor

@jonatack this particular change i'm asking for clarification on; so far i don't see the need. as for backward compatibility we now have a semver log. is it your opinion that even if the community adopts a major semver change that it needs to backward compatible or that said major semver change belongs in a clean BIP?

@jonatack

jonatack commented Aug 20, 2025

Copy link
Copy Markdown
Member

as for backward compatibility we now have a semver log. is it your opinion that even if the community adopts a major semver change that it needs to backward compatible or that said major semver change belongs in a clean BIP?

Hi @akarve, yes, see #1600 (comment). I agree that breaking changes (if any) should first be discussed on the mailing list and with the projects that have already implemented the BIP, particularly for a BIP with final status, then probably go into a new BIP that replaces the previous one. Semver would be for non-breaking changes.

@akarve

akarve commented Aug 20, 2025

Copy link
Copy Markdown
Contributor

Hi @akarve, yes, see #1600 (comment).

ok this is a topic for another day. i’ll just point out that the situation leading to the above reasoning has since been addressed:

Furthermore, the BIPs process currently has no way to distinguish BIP versions and the way that has been implemented here is confusing.

@jonatack

Copy link
Copy Markdown
Member

Furthermore, the BIPs process currently has no way to distinguish BIP versions and the way that has been implemented here is confusing.

Could take a look at BIP3 and propose any improvements there you have in mind.

@scgbckbone

Copy link
Copy Markdown
Contributor

NACK

it's always 64 bytes as it uses whole hmac-sha512 digest

@ethicnology

ethicnology commented Aug 21, 2025

Copy link
Copy Markdown
Contributor Author

it's always 64 bytes as it uses whole hmac-sha512 digest

I understand, I was confused with the password length.

I've amended my commit to replace only the Base64 by Base85 in the PWD BASE85 section

@ethicnology ethicnology changed the title BIP85: remove hardcoded byte count since the length is variable and corrects Base64/Base85 encoding references BIP85: replace Base64 by Base85 encoding in PWD BASE85 section Aug 21, 2025
@scgbckbone

Copy link
Copy Markdown
Contributor

@ethicnology could you also unify capitalization on: base64 -> Base64 & base85 -> Base85

@scgbckbone

Copy link
Copy Markdown
Contributor

ACK 3e9befd

@jonatack jonatack left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 3e9befd

@jonatack jonatack added Typo-to-be-collected and removed Proposed BIP modification PR by non-owner to update BIP content labels Aug 21, 2025
@jonatack

Copy link
Copy Markdown
Member

cc @akarve for feedback or sign-off

@akarve

akarve commented Aug 21, 2025

Copy link
Copy Markdown
Contributor

Approved

@jonatack jonatack changed the title BIP85: replace Base64 by Base85 encoding in PWD BASE85 section BIP85: replace Base64 by Base85 in PWD BASE85 section Aug 21, 2025
@jonatack jonatack merged commit 3f2a403 into bitcoin:master Aug 21, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants