Skip to content

Wallet derived from xprv is different for bdk>=0.20 #750

@bonomat

Description

@bonomat

Describe the bug

We generate our wallet from an extended private key (xprv) and realized that the resulting wallet is different when upgrading bdk from 0.19 to a version >=0.20.

To Reproduce

I've created a simple project to reproduce the behavior: https://github.com/bonomat/bdk-showcase

This project uses 4 different bdk versions and prints the resulting addresses/name and found balances.
It shows that the wallet created with <=0.19 is different to a wallet created with >=0.20

Expected behavior

Should be the same?

Build environment

  • BDK tag/commit: 0.20+
  • OS+version:
  • rustc 1.62.0 (a8314ef7d 2022-06-27)
  • cargo cargo 1.62.0 (a748cf5a3 2022-06-08)

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions