Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make xpub and xpriv identifiers match rust-bitcoin #764

Closed
wants to merge 1 commit into from

Conversation

tcharding
Copy link
Member

Recently in rust-bitcoin we agreed that 'xpub' and 'xpriv' are well known terms in the Bitcoin vernacular so, being "words" should be written as Xpub and Xpriv when translated to Rust identifiers.

Make the descriptor key identifiers match rust-bitcoin.

Recently in `rust-bitcoin` we agreed that 'xpub' and 'xpriv' are well
known terms in the Bitcoin vernacular so, being "words" should be
written as `Xpub` and `Xpriv` when translated to Rust identifiers.

Make the descriptor key identifiers match `rust-bitcoin`.
@tcharding
Copy link
Member Author

Jeeebus, I didn't realize that in descriptors we use xprv not xpriv - what a mess.

@tcharding tcharding closed this Oct 28, 2024
@apoelstra
Copy link
Member

This isn't a descriptor thing. xprv and xpub come from the base58 encoding of these objects, as defined in BIP32 in 2012 https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#serialization-format

@apoelstra
Copy link
Member

I don't mind changing the capitalization here.

But FWIW I don't think anybody uses the rust-bitcoin types if they have access to the rust-minscript types. So it's not the end of the world if they're inconsistent.

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.

2 participants