Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Push value onto stack OP_0 = 0x00 OP_FALSE = OP_0 OP_1 = 0x51 OP_TRUE = 0x01 // Stack Operation OP_DUP = 0x76 // Binary arithmetic and conditionals OP_EQUAL = 0x87 OP_EQUALVERIFY = 0x88 // Cryptographic and hashing operations OP_HASH160 = 0xA9 OP_CHECKSIG = 0xAC OP_CHECKMULTISIG = 0xAE )
Variables ¶
View Source
var DefaultNetwork = Mainnet
Functions ¶
func OP_PUSH_BYTES ¶
Types ¶
type ScriptExpr ¶
func Multi ¶
func Multi(m int, keys ...string) ScriptExpr
func Pkh ¶
func Pkh(key string) ScriptExpr
func Sh ¶
func Sh(expr ScriptExpr) ScriptExpr
func Sortedmulti ¶
func Sortedmulti(m int, keys ...string) ScriptExpr
func Tr ¶
func Tr(key string, tree Tree) ScriptExpr
func Wpkh ¶
func Wpkh(key string) ScriptExpr
func Wsh ¶
func Wsh(expr ScriptExpr) ScriptExpr
Click to show internal directories.
Click to hide internal directories.