Is there an existing issue for this?
- I have searched the existing issues
Current behaviour
There are different BIP-380 checksums for the same addresses/ScriptPubKey/keys: “mpfvuvu6” and “ecrayewn”, e.g.:
0$ bitcoin-cli deriveaddresses "wpkh([b8688df1]xprv9s21ZrQH143K2x4gnzRB1eZDq92Uuvy9CXbvgQGdvykXZ9mkkot6LBjzDpgaAfvzkuxJe9JKJXQ38VoPutxvACA5MsyoBs5UyQ4HZKGshGs/84'/0'/0'/0/0)#mpfvuvu6"
1[
2 "bc1qgkju4yvvtuz0s8vqn837q396jezu2h8ex7gk98"
3]
0$ bitcoin-cli deriveaddresses "wpkh([b8688df1]xprv9s21ZrQH143K2x4gnzRB1eZDq92Uuvy9CXbvgQGdvykXZ9mkkot6LBjzDpgaAfvzkuxJe9JKJXQ38VoPutxvACA5MsyoBs5UyQ4HZKGshGs/84h/0h/0h/0/0)#ecrayewn"
1[
2 "bc1qgkju4yvvtuz0s8vqn837q396jezu2h8ex7gk98"
3]
Expected behaviour
The checksum should be the same irrespectively how a ScriptPubKey is represented (“output descriptor” formats, hex string, binary etc.). Different checksums are against their purpose, confuse users, alerting as if ScriptPubKey/data were entered incorrectly by a user.
Steps to reproduce
See the “current behaviour” section above.
Relevant log output
No response
How did you obtain Bitcoin Core
Pre-built binaries
What version of Bitcoin Core are you using?
27.1 and older ones
Operating system and version
Any
Machine specifications
No response