Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

New answers tagged

1 vote
Accepted

hashTypeCode/sighash flag example byte arrays for each type

To create the signature pre-image for spending txprev.output0 in txnew.input1, we need to construct the byte array that includes the necessary data fields and hashTypeCode for each sighashflag. Here's ...
Shaikh Muhammed's user avatar
0 votes

hashTypeCode/sighash flag example byte arrays for each type

0x01 SIGHASH_ALL txnew.version : 01000000 txnew.input count : 02 txnew.input0_txid : fb8d928e7f7bf64a21628f568ec1cc85b5acd4bd30292d96db00e4b4beb1d19b txnew.input0_vout : 01000000 txnew....
Lee's user avatar
  • 815
0 votes

What is the hashTypeCode?

Also known as SigHash, it is an instruction (in a transaction input) from a signer to a verifier to say "to get this to verify, you'll need to construct a transaction template like this." ...
Lee's user avatar
  • 815
0 votes

How does this simple script use the OP_CHECKSIG opcode?

... other documentation on Bitcoin Script language? Looking at Bitcoin Core's interpreter.cpp can be helpful. It contains a big switch(opcode) ... statement for all the opcodes. Now I want to ...
Lee's user avatar
  • 815
2 votes

Can I create multiple OP_RETURN UTxO in single transaction

Such a transaction would be valid, but considered non-standard by most nodes on the Bitcoin network. It is unlikely that such a transaction would propagate to miners and would be included by miners ...
Murch's user avatar
  • 75.7k
0 votes

Verifying a P2WSH by hand

Also, for the script code, i believe you need to preceed the scriptcode with a byte which indicates the length of the script code,as per BIP143
Alain. Jr's user avatar

Top 50 recent answers are included