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.

0 votes
0 answers
61 views

How to extract p2sh from tx block

I'm trying to extract p2sh addresses from blocks and I am not doing something correctly. What I have tried is: def decodep2sh(self, redeemscript): sha256 = hashlib.sha256(bytes.fromhex(...
2 votes
1 answer
166 views

What was the first ever BIP 16 transaction? (Read: Not BIP 13)

I'm having a very difficult time finding the first-ever P2SH transaction on the blockchain. I do not have a query tool to answer this question myself, sadly. All internet searches result in this ...
  • 43
0 votes
0 answers
36 views

Spend from multiple P2SH addresses with Bitcoin Core

I have P2SH wallet keys from block io backup. The keys and the redeem script example: BIP32 Public Key: xpub661MyMwAqRbcGWq****************************************...
2 votes
1 answer
62 views

How come an `OP_3` P2SH redeem script is spendable?

I completed a round trip transaction with the redeem script hash: 31vFvEkyAb2iusbPip36H9rVt6pxExuaVR, whose redeem script is OP_3 (0x53) (yes I know not secure). I can understand OP_1 redeem script ...
  • 63
0 votes
1 answer
42 views

P2SH to P2PK transaction - mandatory-script-verify-flag-failed (Opcode missing or not understood) (error 26)

I am trying to spend a P2SH UTXO based on a redeem script that requires no signatures and simply needs the correct input to equal the OP_HASH160 digest in the corresponding P2SH locking script. My ...
  • 63
1 vote
1 answer
65 views

Bitcoin Exchange only sends funds to P2PKH and P2SH addresses, but my address is Bech32. What can I do to get that fund into my account?

This is the email that I've received from my exchange: There are three bitcoin address formats currently in use: P2PKH addresses which begin with the number 1. P2SH addresses starting with the ...
  • 111
5 votes
1 answer
62 views

Why wasn't P2SH-wrapped P2WPK added to any BIP?

Pieter Wuille wrote this: There is no such thing as P2WPK; the only valid witness v0 programs are P2WPKH (OP_0 + hash160 of pubkey) or P2WSH (OP_0 + sha256 of script). But I don't understand the ...
  • 637
0 votes
1 answer
71 views

how to hash a bitcoin address for transactions?

can someone tell me how bitcoin hash a btc address? when you try to hash it on this website, you will get the same result as down below Bitcoin Address : 1JKRgG4F7k1b7PbAhQ7heEuV5aTJDpK9TS Result (...
1 vote
1 answer
37 views

Are PubKeys from multisig scripts addresses?

Are PubKeys from multisig scripts addresses? I.e. are they ever HASH160'd and re-used as normal P2PKH addresses in the future transactions?
5 votes
1 answer
288 views

Did the P2SH BIP-0016 make some Bitcoin unspendable?

The P2SH feature currently in use was introduced to Bitcoin in 2012 with BIP-0016. It was successfully activated on 2012-04-01 with block 173805. The BIP turned a particular "hashlock" ...
0 votes
1 answer
61 views

Should an offline address generated from private key send funds to wallet?

I'm trying to use the python package python-bitcoinlib to send a timelock transaction on testnet. The github has two examples to create an address, and then use that address to send the bitcoin to ...
0 votes
1 answer
50 views

Why wrapping P2PK inside P2SH didn't catch on?

Call it a pay-to-public-key-script-hash (P2PKSH), like so: Locking script: OP_HASH160 OP_DATA_20 redeem_script OP_EQUAL Redeem script: OP_DATA_20 pubkey OP_CHECKSIG Unlocking script: <push ...
0 votes
1 answer
30 views

What determines if a descriptor can have ranges?

For example, an address for a simple P2SH script puzzle like x+5=6 will always be the same address, so my understanding is that should not be ranged. Where can I understand the general logic for ...
1 vote
1 answer
61 views

Is it possible to import a P2SH address as solvable with nonstandard type script?

I am trying to import a P2SH address as watch-only using the importmulti RPC command. I provide the scriptPubKey, timestamp, and redeemscript values. The value of scriptPubKey that I'm submitting is ...
0 votes
1 answer
57 views

How to Generate P2SH Address from XPUB Ledger

I'm trying to Generate unused receiving Addresses for a Segwit P2SH wallet in my Ledger. I tried https://pypi.org/project/bitcoinlib/ but without success, the addresses weren't right. This is from my ...

15 30 50 per page
1
2 3 4 5
15