Questions tagged [bip174-psbt]

Bitcoin Improvement Proposal 174 concerns Partially Signed Bitcoin Transactions (PSBT).

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

Bitcoin PSBT doest support cashAddr format for Bitcoin Cash transactions? [closed]

I am trying to add a Bitcoin Cash (BCH) CashAddr output to a Partially Signed Bitcoin Transaction (PSBT) , but it seems not to support CashAddr format. I'm looking for guidance on how to correctly add ...
cryptoKTM's user avatar
  • 554
0 votes
1 answer
40 views

Enforcing PSBT Signature Rules: Finalizer/Extractor and Deserialization Implementation

Should PSBT finalizers/extractors and deserialization functions enforce the rule that a taproot schnorr signature should only append a SIGHASH_* unless it is SIGHASH_DEFAULT (0), or is it left to the ...
solar's user avatar
  • 13
2 votes
1 answer
77 views

Estimating virtual bytes of a transaction seems circular

I'm sorry if this has been answered before, but I haven't found anyone really bring this up. I am trying to construct a PSBT, which assumes a fixed feerate and a fixed amount to send to some address. ...
Michael Hamilton's user avatar
2 votes
1 answer
71 views

Getting Error while trying to decode psbt base64 to json using bitcoinjs/bip174 library

const base64PSBT = 'base_64'; // Decode the base64 PSBT to a Buffer const psbtBuffer = Buffer.from(base64PSBT, 'base64'); // Parse the PSBT const psbt = bip174.Psbt.fromBuffer(psbtBuffer); // ...
soumyadeep.eth's user avatar
2 votes
0 answers
90 views

Bitcoin Core missing public key when generating PSBT transaction

I use Bitcoin Core for offline signing. I created a legacy watch-only wallet, imported a public key using importpubkey, then called rescanblockchain, then generated a psbt transaction text(psbt_tx_txt)...
MonKong's user avatar
  • 53
0 votes
1 answer
59 views

Partially signed bitcoin transactions

Is the psbt data format the only way to exchange information about the Bitcoin transaction or is there another way to do it?
DustInTheSilence's user avatar
1 vote
0 answers
43 views

walletprocesspsbt rpc not signing psbt tx

After extensive regtest testing I've been unable to reproduce this issue. This is a gist to regtest psbt commands that do work. https://gist.github.com/miketwenty1/ecb9acdbca858878f1856b75493fef4c ...
Michael Tidwell's user avatar
1 vote
1 answer
246 views

Need help moving funds from legacy address, Coldcard won't sign psbt

I'm in needs of help moving funds from an legacy address, single sig: I exported my Coldcard's xpub to Bluewallet. Bluewallet derived an address from that xpub onto which I received funds. ...
honeypotGhost's user avatar
0 votes
0 answers
25 views

bitcoin.Psbt doesn't auto-display its method/properties in Visual Studio Code

When instantiating a new Psbt in my Visual Studio Code like below: const psbt = new bitcoin.Psbt() The variable psbt doesn't auto display any of its methods/properties after I add the . right after ...
jiamijiang's user avatar
3 votes
0 answers
69 views

Setting up to create PSBTs using Bitcoin Core from 10 year old non-deterministic wallet

I have an old wallet from 10+ years ago. It was created using an old version of Bitcoin Core before deterministic wallets were a thing. I have it now on an offline computer that has Bitcoin Core 21.0....
Sarlat's user avatar
  • 31
0 votes
0 answers
65 views

How to sign a PSBT with BitcoinerLAB?

First of all, We are using bitcoinerLab. From the seed, we generate the Master Key, and with the path, we create the child key 0 (the parent's) and child key 1 (the child's). Now, from these keys, we ...
Chupitastiiks's user avatar
0 votes
0 answers
111 views

Some way to PSBT multisig ordinal send using raw transaction from CLI?

Is there some way to use createrawtransaction command on bitcoin-cli to send an specific satoshi, which has inside the NFT? I would like to transfer it handly using cli commands, instead wallets or ...
JuliSmz's user avatar
  • 101
1 vote
1 answer
45 views

PSBT: What string encoding is recommended for identifier field of PSBT_IN_PROPRIETARY key?

Looks like bip174 doesn't specify string encoding (utf8, ascii) for bytes identifier field of PSBT_IN_PROPRIETARY key. Now how a psbt lib can check if the bytes identifier is a a valid string bytes or ...
solar's user avatar
  • 13
0 votes
0 answers
111 views

How to sign SegWit Transaction without using third party libraries (step by step)

I have a PSBT transaction. My code parsed it into its component parts: 3 maps - global input, output. I based on the document 1. I parsed each transaction into separate fields. Found all scripts and ...
Roman Andronov's user avatar
2 votes
1 answer
70 views

What is the purpose of BIP32 derivation paths in PSBT?

Does the wallet software use the Bip32 derivation paths to generate the partial signature map?
btctestdev11's user avatar
3 votes
1 answer
335 views

How to resolve error when trying to sign and broadcast PSBT transaction via electrum - (Witness program hash mismatch code -26)?

I'm trying to generate a 2-of-2 multisig transaction as a PSBT so that both parties can easily sign their transaction. I'm doing this all on btc testnet as a p2sh p2wsh transaction When initially ...
btctestdev11's user avatar
2 votes
0 answers
38 views

Create transaction with inputs of two different HD wallets

Is it possible to create one Bitcoin transaction with input UTXOs of two different HD-Wallets? E.g. using an UTXO of a Software Wallet and one UTXO of an Hardware Wallet. Of course I think it is ...
steff123's user avatar
  • 153
1 vote
0 answers
45 views

Message signing with airgapped wallet that doesn't support it

I need to implement message signing for various HWs, many of them support it on a firmware level, but some airgapped wallets like SeedSigner or Jade still don't. I was wondering if there's a way to ...
beefgroin's user avatar
2 votes
1 answer
382 views

Signing PSBTs to spend from Taproot multisig address

I created a 2-of-3 multisig taproot address by following the steps outlined by Pieter Wuille in this post using importdescriptorsand deriveaddresses. His steps worked perfectly, and I was able to ...
FractalEncrypt's user avatar
0 votes
1 answer
51 views

TX decode failed Separator is missing at the end of an output map: iostream error

import requests url = "http://127.0.0.1:18332/wallet/w3" headers = { 'Authorization': 'Basic dXNlcjpwYXNz', 'Content-Type': 'text/plain' } def combinetx(): payload = "{\&...
user avatar
0 votes
1 answer
183 views

testnet output address has no matching Script?

Here is my code to create a PSBT on the testnet: const bitcoin = require("bitcoinjs-lib") const privKey1 = "..." const address1 = "mkVPHMR5euGTcvpFj6tfyVERstDdH4RtQs" ...
jiamijiang's user avatar
1 vote
1 answer
63 views

Can a transaction be dependent on another in the same block?

Say I'm creating a multi-sig wallet with a friend to bet on the election. Can my deposit to the multi-sig wallet be dependent on the my friends deposit to the wallet? Say I'm Alice, and my friend is ...
miketery's user avatar
4 votes
1 answer
321 views

Which wallets or libraries besides core support (or will support) P2TR descriptors?

I want to help test the WIP Bitcoin Dev Kit "Add support for Taproot and tr() descriptors", PR #593 against other implementations besides Bitcoin Core (already testing again Core 22.0). In ...
Not Mandatory's user avatar
3 votes
1 answer
477 views

Taproot signing with PSBT: How to determine signing method?

As far as I can tell there are three ways you can produce a valid Schnorr signature in a Taproot environment: For a p2tr output that uses a BIP-0086 commitment (key spend, sign with internal key, ...
guggero's user avatar
  • 228
2 votes
1 answer
200 views

Is it possible to broadcast psbt in bitcoin core?

Is it possible to broadcast psbt in bitcoin core without converting to raw transaction?
percy-g2's user avatar
2 votes
1 answer
162 views

Why is Electrum able to generate .psbt from the address only but BitcoinCore requires a Public Key/Descriptor?

When generating a .psbt it suffices to merely import the address (hashed Public Key) in Electrum while in BitcoinCore (for the same address) I also would have to import either a corresponding Public ...
David's user avatar
  • 172
2 votes
1 answer
288 views

Create a .psbt using the BitcoinCore client

I am trying to create a .psbt using BitcoinCore on mainnet. The use-case is that I want to be able to export the unsigned transaction, import it into my cold-storage wallet (using BitcoinCore) and ...
David's user avatar
  • 172
1 vote
1 answer
148 views

Handling 'Has SIGHASH_SINGLE' flag for psbt2 (BIP370)

BIP370 specifies a bit flag (bit 2) in PSBT_GLOBAL_TX_MODIFIABLE field, that "indicates whether the transaction has a SIGHASH_SINGLE signature who's input and output pairing must be preserved&...
Dmitry Petukhov's user avatar
1 vote
1 answer
60 views

How would a PSBT signer identify a non-bip32 key?

In a PSBT, version 0 or 2, how would a signer know what keypair to use for an input or an output if the keypair isn't derived through bip32? For inputs, assuming p2wpkh for simplicity, I suppose one ...
Kalle Rosenbaum's user avatar
2 votes
0 answers
138 views

Add inputs and outputs to a transaction signed with sighash SINGLE | ANYONECANPAY

I created a transaction with one input and one output, and signed it using sighash SINGLE | ANYONECANPAY. Can I add further inputs and outputs with another wallet using bitcoin-cli?
RobinLinus's user avatar
1 vote
0 answers
502 views

Sign psbt with software wallet. [electrum & others]

So I've been looking for days to sign a PSBT transaction but upon to all my research i failed or i just haven't searched in the right place. The PSBT content is generated from a payment gateway that I'...
4j4x00's user avatar
  • 11
3 votes
0 answers
53 views

What are the malleability threat vectors when passing PSBTs to other actors?

If I am passing a PSBT (Partially Signed Bitcoin Transaction) between multiple people, and I pass on my signature for my UTXOs for given inputs, can someone take advantage of malleability and cheat me ...
arshbot's user avatar
  • 1,710
4 votes
0 answers
129 views

Sign lightning channel creation PSBT with Golang

I'm trying to open a channel on regtest with LND v0.13.0-beta.rc3 using their PSBT workflow to allow for remote signing. I've done the following steps: I create a regtest wallet using the BIP39 ...
SamCymbaluk's user avatar
0 votes
1 answer
247 views

Bitcoin core trying to sign a transaction loaded from psbt file, but getting "could not sign any more inputs" error

I am trying to sign a transaction loaded from psbt file, but I'm getting could not sign any more inputs error. I did it successfully on the first try. However I cannot do it any more now. I changed my ...
bbnn's user avatar
  • 227
0 votes
0 answers
85 views

RPC to sign PSBT with private key

What is the PSBT related RPC which works similar to signrawtransactionwithkey ?
user avatar
7 votes
1 answer
1k views

What does PSBT stand for?

What is PSBT? What does it stand for? bitcoin-qt has menu items "Load PSBT from file…" and "Load PSBT from clipboard…"; the dialog box says the file format is "Partially ...
Geremia's user avatar
  • 4,556
1 vote
1 answer
170 views

Sign PSBT for 2 of 3 multisig

Creating an unsigned PSBT: { "jsonrpc": "1.0", "id": "curltest", "method": "walletcreatefundedpsbt", "params": [ [ { "txid": "...
percy-g2's user avatar
2 votes
1 answer
394 views

WitnessScript vs. Script Witness

In BIP 174/PSBT, there is a PSBT Input key-value pair called "PSBT_IN_WITNESS_SCRIPT" (0x05) and another called "PSBT_IN_FINAL_SCRIPTWITNESS" (0x08). What is the difference between ...
Sachin Meier's user avatar
2 votes
1 answer
1k views

How to convert PSBT transaction (base64) to raw/serialized (hex) transaction?

Bitcoin Core's CLI has a converttopsbt command used to convert from raw transaction to PSBT transaction but how is it possible to convert from PSBT transaction to raw transaction using Bitcoin Core (...
Amit's user avatar
  • 23
6 votes
1 answer
1k views

What is the difference between PSBT support in Coldcard and Trezor?

The 10x Security Bitcoin Guide says that the only two hardware wallets support BIP174 (partially signed Bitcoin transactions, or PSBT). However, this Reddit thread says that "You can use PSBT ...
Sergei Tikhomirov's user avatar
0 votes
1 answer
695 views

Can we sign a psbt raw tx having multiple inputs created from BTC node with bitcoinjs lib?

Due to secruity reasons, unavailablity of private keys on my end and as per project requirements I need to build back end apis where I will provide a PSBT raw transaction hex (having multiple inputs) ...
Surinder kumar's user avatar
1 vote
1 answer
106 views

PSBT encoding : what's the aim of convertBytes function?

I'm currently working on PSBT and I try to understand all the part of the original implementation. Dealing with base64 PSBT encoding: it seems that we convert the buffer from a base 8 to a base 6 ...
Louis Singer's user avatar
1 vote
0 answers
156 views

How can I use PSBT in a JavaScript project?

I am trying to use PSBT in a Bitcoin project. The idea is to generate keys and sign transactions client-side. I am already familiar with bitcoinjs-lib but I find the API rather complicated. It would ...
Mario Mazzola's user avatar
1 vote
1 answer
2k views

Create unsigned tx (PSBT) in a watch-only wallet using bitcoin core, sign it in electrum and broadcast using bitcoin core

What are the steps that we can follow to create an unsigned tx for watch-only cold storage address using bitcoin core? How can we sign the transaction and broadcast it later?
user avatar
1 vote
2 answers
974 views

How to create unsigned tx in a watch-only wallet?

UPDATE: The issue is resolved and I have mentioned the steps in Create unsigned tx (PSBT) in a watch-only wallet using bitcoin core, sign it in electrum and broadcast using bitcoin core Below are the ...
user avatar
2 votes
2 answers
292 views

Problem making multisig PSBT on walletcreatefundedpsbt

I'm fighting with PSBT to do a 2: 2 multisig with bitcoin-cli on testnet. Those are the steps I follow: Create a multisig with bitcoin-cli createmultisig 2 "["pubkey1", "pubkey2&...
Aitorjs's user avatar
  • 31
2 votes
1 answer
283 views

Why isn't my PSBT considered complete after walletprocesspsbt and finalizepsbt?

I created a transaction using createrawtransaction spending a UTXO that I own the keys to and then converted it to PSBT using converttopsbt, then I used walletprocesspsbt and finalizepsbt. After ...
francois's user avatar
  • 103
0 votes
1 answer
67 views

Why does BIP174 take Xpubs but no addresses?

I have a few questions on BIP 174: XPUBs: I am looking at BIP174, and I see that I can define a global XPub. How is this used. How does an updater, signer, or finalizer know what this XPub is for? ...
Sachin Meier's user avatar
6 votes
1 answer
239 views

Segwit & Offline Signing

Yesterday Trezor released details of a segwit-related hardware wallet vulnerability. The writeup claims that providing full previous transactions to the hardware wallet prevents the exploit. My ...
justinmoon's user avatar
1 vote
1 answer
1k views

How to sign a PSBT transaction?

I have a PSBT (in Base64 format) which I need to sign using GoLang, but I can't figure out which steps I need to do that. I found this but I'm not really confident with Bitcoin and Python, so I didn't ...
Rockietto's user avatar