
Bitcoin-Backed Wrapped Assets
Bitcoin's locking script (also known as scriptPubKey):
Key Components:
Script Conditions
Common Types:
OP_DUP
OP_HASH160
<Public Key Hash>
OP_EQUALVERIFY
OP_CHECKSIG# P2SH (Pay to Script Hash) Example
# Redeem Script (this gets hashed)
# This is a 2-of-3 multisig script
OP_2 # Require 2 signatures
<pubKey1> # First public key
<pubKey2> # Second public key
<pubKey3> # Third public key
OP_3 # Total of 3 keys
OP_CHECKMULTISIG # Check multiple signatures
# Actual Locking Script (P2SH)
OP_HASH160 # Hash the redeem script
<redeemScriptHash> # Push hash of redeem script
OP_EQUAL # Verify script hash matches
# Unlocking Script (scriptSig)
<signature1> # First signature
<signature2> # Second signature
<redeemScript> # Full redeem scriptBitcoin-Backed Wrapped Assets
Wrapped Version (on Layer 2)

Trading and Security
Last updated