Questions tagged [p2sh]

Pay to Script Hash is a transaction output format that allows you to lock funds to the execution of arbitrary scripts. It was defined in BIP0016.

231 questions
10
votes
1 answer

Where are P2SH full redeem scripts stored?

A pay-to-script-hash/P2SH full redeem script can be up to 520-bytes in size. Just to clarify, prior to being revealed/spent, is the redeem script stored in the spender/Bob's wallet or elsewhere? The developer guide says: "When Bob wants to spend…
Colman McMahon
  • 195
  • 3
  • 12
8
votes
2 answers

How can one know which way mining pools will vote for P2SH?

Is there a list somewhere showing how each mining pool will vote on the P2SH question? and If a pool says that it is voting one way, is it possible to independently verify that they are indeed voting that way with their mining power?
kirian
  • 3,289
  • 1
  • 24
  • 36
3
votes
1 answer

Which security threats in P2PKH lead to the use of P2SH?

To steal a P2PKH output you would have to find the private key of the public key that generated the hash used in the tx. This is impossible to do in a feasible timespan, therefore making the tx secure. What incentivized the use of P2SH? I'm…
3
votes
1 answer

P2SH transaction signing

I'm trying to redeem a 2of2 p2sh unspent output. I have the complete multisig redeem script, a single input and a single p2pkh output. My understanding is that I should replace the ScriptPubKey of that single input with the unhashed redeemscript,…
Matt
  • 540
  • 3
  • 10
2
votes
2 answers

Hard time distinguishing change and withdraw amount for P2SH address

I am trying to extract the exact amount of BTC deposited and withdrawn from BTC address (from hardware wallets like Trezor, ledger nano, ...). So if the address is pay-to-pubkey-hash then I can easily track amount through its transaction id hash ->…
M.Roe
  • 23
  • 3
2
votes
1 answer

Is it possible to restrict where coins from a given P2SH address can be sent to?

I would like to create a checking/saving style scheme where coins from savings can only go into checking before they go anywhere else. Is this even possible in Bitcoin?
R Bubba M
  • 23
  • 2
2
votes
1 answer

P2SH that pays out only to a certain Bitcoin address?

Is it possible to create a type of redemption script that when the correct number of signatures are collected pays out to a pre-defined address ?
Ian Purton
  • 1,000
  • 6
  • 12
2
votes
1 answer

How are p2sh address spent

So, I was looking into how P2SH transactions are working and by looking at different blog post and in particular to this answer, I have the following question. So, let's take the same transaction: What I am not getting is how the operation are…
fraccaman
  • 33
  • 3
1
vote
1 answer

Does P2SH unlocking script only consist of operants?

I have a question about the P2SH unlocking script. Can I put common operants and operators in the P2SH unlocking script? And if yes, how can I create such script? e.g. unlocing script: CHECKSIG redeem script: …
1
vote
1 answer

How to spend an UTXO P2SH pay-to-script-hash

Anyone knows specific instructions on how to claim an unspent P2SH TX (pay-to-script-hash) based on a redeem script? No multisig. I am looking for node.js JS instructions in bitcore-lib or similar. Any suggestions or help appreciated. Thanks :)…
Robert
  • 351
  • 3
  • 15
1
vote
1 answer

Access my wallet using a 16 digit passphrase

I had a wallet years ago on a PC I sold. I mined bitcoin on it and what not. Recently I found a 16 digit passphrase I wrote down for my wallet. That is all I have and probably all I needed. If I only wrote down the 16 digit passphrase that means…
bjinthirty
  • 11
  • 3
1
vote
1 answer

Transaction using OP_CHECKSEQUENCEVERIFY not accepted by the network

When I publish the testnet transaction below, it does not seem to be accepted by the network. Publishing the transaction seems to work fine as it returns the txid, but the transaction does not show up on any of the blockexplorer services and does…
0
votes
1 answer

Hiding data in OP_RETURN statement?

I'm reading this article, and quote The blockchain transaction’s OP_RETURN data can be decrypted using AES-256 GCM to provide a backup command and control domain name How did someone able to manipulate the Bitcoin transaction script without…
daisy
  • 107
  • 4