Skip to content

Create PSBT from a Transaction #283

@andreasgriffin

Description

@andreasgriffin

Describe the enhancement

psbt.finalize() creates Tx from a PSBT. I would like to be able to reverse this, given the corresponding wallet is available. I am not sure this is possible, but would be great for the use case below.

PSBT.from_tx(transaction: Transaction, wallet:Wallet)->PSBT

Use case

  • A finalizes multisig transaction contains signatures. However it is not clear which signer (fingerprint) created which signatures. A PSBT has however this association of fingerprints with signature: Feature request: PSBT (missing) signature info bdk-ffi#419
    • Why would one like to do this identification? Because that allows one to check when a signer was last able to sign. This gives a health status for each signer.
    • Why not get it from the PSBT directly? Because the last hardware signer typically finalizes the tx to have a smaller QR code. (Or the final tx is broadcasted another method via push_tx for example)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions