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

[Android] Descriptor checksum mismatch #76

Open
Czino opened this issue Jan 30, 2024 · 3 comments
Open

[Android] Descriptor checksum mismatch #76

Czino opened this issue Jan 30, 2024 · 3 comments

Comments

@Czino
Copy link
Contributor

Czino commented Jan 30, 2024

On rare occasions after a new install, the error Descriptor checksum mismatch is thrown.

The workaround at the moment is to reinstall the app and the error won't appear anymore using the same private key.

@notmandatory
Copy link

If this issue is related to how bdk validates checksum, as of the bdk_wallet 1.0 release we now use the rust-bitcoin lib for verifying descriptor checksums, see bitcoindevkit/bdk#1523. However I'm not aware of any descriptor checksum bugs in pre-1.0 bdk or bdk-ffi so still worth digging into the bdk-rn code to make sure this issue wasn't introduced somehow there.

@notmandatory
Copy link

notmandatory commented Jan 24, 2025

This sort of issue can also come up if the "hardened index" indicator using a single quote ' vs h which produce different checksums. Or when the single quote is interpreted in the shell or maybe code as ending a string, JS has it's own interesting rules for how strings are delimited. See bitcoindevkit/bdk#1050#issuecomment-1658428482.

@notmandatory
Copy link

Also if you have any steps to reproduce the issue that would be the most helpful.

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

No branches or pull requests

2 participants