LtbLightning / bdk-flutter

Bitcoin Development Kit - Flutter Package
MIT License
60 stars 27 forks source link

Allow Extraction of PSBT struct #60

Closed BitcoinZavior closed 1 year ago

BitcoinZavior commented 1 year ago

Expose the entire PSBT in the bindings. (https://docs.rs/bitcoin/0.29.2/bitcoin/util/psbt/struct.PartiallySignedTransaction.html) This will allow the tx to be extracted with available data, verification of extracted tx. This will also be useful and perhaps mandatory for multisig tx creation and signing.

BitcoinZavior commented 1 year ago

Depends on https://github.com/bitcoindevkit/bdk-ffi/issues/311

thunderbiscuit commented 1 year ago

I'm reaching out to users who have a current use case for the full PSBT. Since we're not exposing the entierty of the type system from rust-bitcoin in this first pass, Steve is looking for feedback on whether this output (just JSON-serialized psbt) would cover your use case. Please comment on the issue/PR if you can.

Issue: https://github.com/bitcoindevkit/bdk-ffi/issues/311 PR: https://github.com/bitcoindevkit/bdk-ffi/pull/334

@awaik

BitcoinZavior commented 1 year ago

@thunderbiscuit This will help in reading data so a step in the right direction.