mrtnetwork / bitcoin_base

A versatile library for Bitcoin, Dogecoin, Litecoin, Dash, BSV and Bitcoin Cash. Supports P2PK, P2PKH, P2SH, P2WPKH, P2WSH, Taproot, with advanced creation, signing, and spending capabilities.
BSD 3-Clause "New" or "Revised" License
23 stars 19 forks source link

sign psbt #7

Closed leeway1208 closed 3 months ago

leeway1208 commented 6 months ago

Hello~ Is there a way to sign psbt with ECPrivate, or convert psbt to txDigest? Thanks.

mrtnetwork commented 6 months ago

Hello~ Is there a way to sign psbt with ECPrivate, or convert psbt to txDigest? Thanks.

pbst? I am not familiar with this, can you give me the documents?

leeway1208 commented 6 months ago

Hello~ Is there a way to sign psbt with ECPrivate, or convert psbt to txDigest? Thanks.

pbst? I am not familiar with this, can you give me the documents?

Hi, https://river.com/learn/what-are-partially-signed-bitcoin-transactions-psbts/ and https://github.com/bitcoin/bitcoin/blob/master/doc/psbt.md. I think it's a little difficult.

mrtnetwork commented 6 months ago

Hello~ Is there a way to sign psbt with ECPrivate, or convert psbt to txDigest? Thanks.

pbst? I am not familiar with this, can you give me the documents?

Hi, https://river.com/learn/what-are-partially-signed-bitcoin-transactions-psbts/ and https://github.com/bitcoin/bitcoin/blob/master/doc/psbt.md. I think it's a little difficult.

I think you should take a look at the multi-signature transactions.https://github.com/mrtnetwork/bitcoin_base/blob/main/example/lib/global/old_examples/spending_with_transaction_builder/multi_sig_transactions.dart