Skip to content

boilerplate contracts

Reusable .ct starting points for common UTXO_Compiler contract patterns. Code comments are localized when paired EN / ZH comments are available.

FilePattern
accumulatorMultiSig.ctThreshold multisig with selectable participants
atomicSwap.ctHash-lock claim plus timeout refund
auction.ctStateful auction with bid and close paths
clone.ctState-continuation clone verifier
coinToss.ctCommit-reveal coin toss
counter.ctStateful counter with increment-only continuation
counter2.ctStateful counter with increment, decrement, and reset
demoBitVM.ctBitVM-style boolean gate proof
multiPartyHashPuzzleOpt.ctCombined-hash puzzle optimization
oracleDemoBsv20.ctSchnorr-signed BSV20 oracle message verifier
ordinalAuction.ctOrdinal auction with higher-bid state continuation and deadline close settlement
ordinalLock.ctPermissionless ordinal purchase with seller-signed cancellation
ordinalSwap.ctOrdinal swap settlement and cancel flow
p2pkh.ctP2PKH-style signature lock
pricePredictionOracle.ctOracle-settled price prediction payout
timedCommit.ctTimed commitment with open and forfeit paths