Skip to main content
Share Your Experience: Take the 2024 Developer Survey
5 votes
Accepted

What is Tapscript?

Script (uppercase S, also Bitcoin Script) is the scripting language used in Bitcoin. Its programs are called "scripts" (lowercase s), often with an adjective based on the location of the ...
Vojtěch Strnad's user avatar
4 votes
Accepted

Why is my P2WSH OP_IF/NOTIF argument not minimal?

In SegWit (by standardness) and Taproot (by consensus), the arguments to OP_IF and OP_NOTIF must be minimal, i.e. be either the empty vector or the one-byte vector 01. Your transaction uses 00, which ...
Vojtěch Strnad's user avatar
3 votes
Accepted

Understanding Script's number encoding, CScriptNum

Numbers in Script are represented as byte vectors of up to 4 bytes and interpreted as signed integers between -2^31+1 and 2^31-1. This is with the exception of OP_0, OP_1NEGATE and OP_1 through OP_16 ...
Antoine Poinsot's user avatar
2 votes
Accepted

What is an example usage for Script pseudo words?

What is transaction matching? When a wallet implementation is trying to figure out how to sign a script, it needs to figure out whether it's a script it knows how to sign for first. This can be very ...
Pieter Wuille's user avatar
2 votes
Accepted

Is there really a thing called "Bitcoin address"? Since all I need to spend a UTXO is to provide a scriptSig

Addresses do not exist on chain, and at the protocol level even nothing equivalent to an address balance exists. All that exists are UTXOs created by transactions, which carry a scriptPubKey. ...
Pieter Wuille's user avatar
1 vote
Accepted

What op_codes are used to inscribe "microstrategy orange" spam?

According to the specification, data for IDs is embedded into the blockchain through either OP_RETURN outputs, or through inscriptions. OP_RETURN outputs have no effect on the UTXO set since they are ...
Ava Chow's user avatar
  • 70.8k

Only top scored, non community-wiki answers of a minimum length are eligible