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

Wallet serialization blocks update to secp256k1 0.24.0 #2282

Open
tmpolaczyk opened this issue Oct 17, 2022 · 1 comment
Open

Wallet serialization blocks update to secp256k1 0.24.0 #2282

tmpolaczyk opened this issue Oct 17, 2022 · 1 comment

Comments

@tmpolaczyk
Copy link
Contributor

After updating to secp256k1 0.24.0, the wallet does not allow to unlock previously created wallets with this error:

[2022-10-17T15:37:24Z ERROR witnet_wallet::actors::app::error] Internal Error: repository failed: database failed: bincode failed: io error: unexpected end of file

We need to find out why is that happening, and implement some workaround to allow us to update to secp256k1 0.24.0 or greater.

@tmpolaczyk
Copy link
Contributor Author

This seems to be because of the ExtendedSK type, it is used to store the master key, and the derived internal and external keys.

See the master_key and account_key functions here:
https://github.com/witnet/witnet-rust/blob/8304d479a1d78ad6b3266af30d468004384086ac/wallet/src/repository/keys.rs

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

1 participant