Author

Topic: How can I process a PSBT created with createpsbt using bitcoin-cli? (Read 124 times)

staff
Activity: 3458
Merit: 6793
Just writing some code
Ok thank you. And normally this should work to sign a PBST offline without any access to txindex or the mempool, similarly to signrawtransaction?
As long as the PSBT is updated with all of the necessary data.
member
Activity: 74
Merit: 21
There is a proposal for a descriptorprocesspsbt RPC that would do signing.

Ok thank you. And normally this should work to sign a PBST offline without any access to txindex or the mempool, similarly to signrawtransaction?
staff
Activity: 3458
Merit: 6793
Just writing some code
There is a proposal for a descriptorprocesspsbt RPC that would do signing.
member
Activity: 74
Merit: 21
just want to provide the PSBT and the private key as an input to sign the transaction...
You mean a signrawtransactionwithkey type RPC call for psbt ? I guess, we don't have any for now. walletprocesspsbt is the only way, unfortunately.

Yes exactly, it would be very useful for offline signature of PSBTs. Is there any plan to add such functionality? I am right that as opposed to an unsigned raw transaction, a PSBT contains all the required information to sign it offline (excluding the private key)? Thanks!
hero member
Activity: 1050
Merit: 681
just want to provide the PSBT and the private key as an input to sign the transaction...
You mean a signrawtransactionwithkey type RPC call for psbt ? I guess, we don't have any for now. walletprocesspsbt is the only way, unfortunately.

EDIT
Is there any plan to add such functionality? Thanks!
Sry, not sure!
member
Activity: 74
Merit: 21
There is no "processpsbtwithkey" function?
No such RPC.

Try these:
 
Code:
walletprocesspsbt
:(Updater, Signer, Finalizer)
Code:
finalizepsbt
: (Finalizer, extractor)

Refer : PSBT Howto for Bitcoin Core.

I don't have a wallet on the non-connected computer, I just want to provide the PSBT and the private key as an input to sign the transaction...
hero member
Activity: 1050
Merit: 681
There is no "processpsbtwithkey" function?
No such RPC.

Try these:
 
Code:
walletprocesspsbt
:(Updater, Signer, Finalizer)
Code:
finalizepsbt
: (Finalizer, extractor)

Refer : PSBT Howto for Bitcoin Core.
member
Activity: 74
Merit: 21
Hi,

I am trying to move from creating a transaction using createrawtransaction on a networked computer and sigining it using signrawtransactionwithkey on a non-connected computer to using psbts. The createpsbt function seems to work fine, but I don't know how I can sign it in the other system using the key? There is no "processpsbtwithkey" function?
Jump to: