Skip to main content

Questions tagged [bip174-psbt]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
52 views

Why are bip32_derivs included in psbt outputs?

I do not want to share my output bip32_derivs as it seems to leak unnecessary info to other participants in collaborative transactions. Why are bip32_derivs included in psbt outputs? EDIT: I should ...
Fontaine's user avatar
  • 510
1 vote
1 answer
62 views

Is it possible to combine two PSBTs while retaining the existing signatures?

What if I want to combine two PSBTs: one is signed by Alice’s private key, another one is unsigned. I want to take the input and output from the signed one, and combine them with the unsigned PSBT, ...
Jack Tsia's user avatar
1 vote
0 answers
37 views

how to get vsize before psbt finalized

I am using bitcoinjs-lib to construct a transaction through PSBT, but I am having difficulty obtaining the virtual size (vsize). My process is as follows: Obtain the user's address through the ...
user151983's user avatar
0 votes
0 answers
16 views

how to calclate the fee of a segwit transaction? [duplicate]

I am using bitcoin-js to construct a PSBT transaction. Suppose address A has 10 UTXOs, each containing 0.0001 BTC. Now I want to construct a transaction to send 0.0005 BTC to address B. If I use 5 of ...
user151983's user avatar
0 votes
0 answers
28 views

How to claim funds in a multisig address from a money pool psbt?

Mostly followed this guide on how to create a psbt where multiple users pool money together. Everything is done in regtest. The gist of what I did is as follows: Created 2 different descriptor ...
Psi's user avatar
  • 1
3 votes
1 answer
78 views

Why is my P2WSH OP_IF/NOTIF argument not minimal?

I have created an HTLC with the following Bitcoin script using bitcoinlib-js: const redeemScript = bitcoin.script.compile([ bitcoin.opcodes.OP_IF, bitcoin.opcodes.OP_SHA256, ...
Oscar Chambers's user avatar
6 votes
1 answer
78 views

How can I verify that a PSBT is solvable by a specific descriptor?

As the title suggests I would like to check whether a specific PSBT is associated with a specific descriptor, either manually or using bitcoin-cli or bdk-cli. I'm more concerned about static ...
max's user avatar
  • 255
0 votes
0 answers
37 views

Why does my PSBT's input script not have a pub key?

I have created a PSBT to sign an HTLC using a funded P2WSH, that I wish to sign with my xverse wallet. This is my decoded PSBT which I have created using bitcoin-cli o@OscarPC:~/bitcoin-htlc$ bitcoin-...
Oscar Chambers's user avatar
0 votes
0 answers
26 views

How to sign P2WSH PSBT with sats-connect?

I have created a funded P2WSH script, which is an HTLC. I now want to create a PSBT which will be signed by another wallet to withdraw the funds. The problem is that the PSBT signing is throwing the ...
Oscar Chambers's user avatar
1 vote
0 answers
59 views

I send sats to the Bitcoin Core wallet I created some time ago without knowing what I was doing and now facing issues with withdrawal I am clueless

Some time ago, I set up a Bitcoin core wallet and sent funds to that wallet a few times thinking they'll be safely stored. Well, they are, and probably too safely. I have a hard time getting funds out....
Najn11's user avatar
  • 11
0 votes
0 answers
32 views

Is it possible to prompt another wallet to add to a PSBT and finalize it?

Is there anyway to request a wallet to complete a PSBT? Let's assume I want my client to send a transaction with follow structure: output[0]: OP_RETURN with bytes 636363636363 output[1]: SEGWIT ...
Saburo Ronin's user avatar
1 vote
1 answer
38 views

broadcast ps2wsh transaction failed

Greeting, I hope someone can guide me about what is wrong with my p2wsh transaction hex below ...
ron s's user avatar
  • 13
0 votes
1 answer
169 views

bitcoinjs - mandatory-script-verify-flag-failed (Signature must be zero for failed CHECK(MULTI)SIG operation)

I'm trying to follow the below transaction example by magic eden and extend it to support multiple buyers and seller (in red). However I am having difficulties when I add more than one signature from ...
psbt_trustless_tx's user avatar
2 votes
0 answers
43 views

Why is Bitcoin Core not filling in PSBT_GLOBAL_XPUB field

When creating a Partially Signed Bitcoin Transaction (PSBT) on Bitcoin Core using the walletcreatefundedpsbt, walletprocesspsbt and send* RPCs, as well as the send dialog* in the GUI the ...
Brandon Odiwuor's user avatar
1 vote
1 answer
153 views

How to use BlockCypher's test network with BitcoinJS-lib?

Trying to make a PSBT via BitcoinJS-lib. I'm using BlockCypher's internal testnet (bcy/test) because I have no choice: literally every other testnet faucet I tested was broken. Using BlockCypher's API ...
1owk3y's user avatar
  • 115
1 vote
1 answer
118 views

How can I add more OP_RETURN outputs to a PSBT transaction?

I want to fund a PSBT transaction that I created with Bitcoin rust. It looks like there is no such function to do that as the Creator is the only one that can set the inputs and outputs. There is an ...
David 天宇 Wong's user avatar
1 vote
1 answer
95 views

Why do PSBT and Descriptor enforce providing the BIP32 derivation path from the root?

Let's consider a scenario: I have a master xprv named xprv1, and I derived an xprv named xprv2 at m/99/88h. Now, I want to use xprv2 to create a new multi-sig wallet, intending to use m/99/88h/0/* as ...
solar's user avatar
  • 25
1 vote
1 answer
189 views

non-mandatory-script-verify-flag (Invalid Schnorr signature)

I try to put this into a Psbt: Alice make payment to purchase an amount of BRC-20 from Bob Bob request to inscribe a transfer of BRC-20 by using Burner account Burner inscribe the transfer of BRC-20 ...
LikKee 沥祺 Richie's user avatar
3 votes
2 answers
172 views

Which hardware wallets require importation of PSBT for knowledge of multisig set up?

My understanding of a multi-vendor multisig is that certain wallets require importation of the resultant multisig wallet's PSBT information in order to sign multisig transactions. Coldcard's ...
Runeaway3's user avatar
  • 329
0 votes
0 answers
100 views

Finalize inputs for a merged psbt 'Can not finalize input #0'

I have a scenario: UserA (bc1pmd3tdzucfnpmq2m3d82yzqmht6hp7smfc2g0tze6ywkxn6h258aszxjdn6): wants to sell an inscription. (5d8c42c867f9c09c0a44397ad2c91d73e8ebb7734e75f54f7caba8ea95eba3b6:2) He signs a ...
dumedco's user avatar
0 votes
1 answer
102 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
  • 25
2 votes
1 answer
189 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. ...
Sherwin Li's user avatar
2 votes
1 answer
161 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
122 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
95 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
80 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
4 votes
2 answers
627 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
30 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
4 votes
0 answers
95 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
  • 41
1 vote
1 answer
56 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
  • 25
0 votes
0 answers
165 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
99 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
896 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
56 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
76 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
572 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
65 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
218 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
65 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
417 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
831 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
  • 238
2 votes
1 answer
290 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
195 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
390 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
217 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
75 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
162 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
648 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
4 votes
1 answer
65 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,788
4 votes
0 answers
173 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