Skip to content

Psbt::sign ok with Xpriv but fails with HashMap<PublicKey, PrivateKey> #4150

@storopoli

Description

@storopoli

If you see the API for Psbt.sign() you can pass (among other options) either:

  • HashMap<PublicKey, PrivateKey>
  • Xpriv

if you pass the Xpriv it signs ok, if you pass the HashMap it errors. Even if you derive PublicKey and PrivateKey straight from the Xpriv.

Do we need to add more stuff to the Psbt to sign with the HashMap?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions