Versions in this module Expand all Collapse all v2 v2.0.3 Dec 26, 2022 Changes in this version + func ChequeArgs(senderLock, receiverLock *types.Script) []byte + func DecodeSudtAmount(in []byte) (*big.Int, error) + func EncodeSudtAmount(amount *big.Int) []byte + func GetCodeHash(network types.Network, script SystemScript) types.Hash + func NewScript(script SystemScript, args []byte, network types.Network) *types.Script + func Secp256K1Blake160SignhashAll(key *secp256k1.Secp256k1Key) *types.Script + func Secp256K1Blake160SignhashAllByPublicKey(compressedPubKey []byte) (*types.Script, error) + func Secp256k1Blake160Multisig(config *MultisigConfig) (*types.Script, error) + type Info struct + CodeHash types.Hash + DepType types.DepType + HashType types.ScriptHashType + OutPoint *types.OutPoint + func GetInfo(network types.Network, script SystemScript) *Info + type MultisigConfig struct + FirstN byte + KeysHashes [][20]byte + Threshold byte + Version byte + func DecodeToMultisigConfig(in []byte) (*MultisigConfig, error) + func NewMultisigConfig(firstN byte, threshold byte) *MultisigConfig + func (r *MultisigConfig) AddKeyHash(keyHash []byte) + func (r *MultisigConfig) Encode() []byte + func (r *MultisigConfig) Hash160() []byte + func (r *MultisigConfig) WitnessEmptyPlaceholderInLock() []byte + func (r *MultisigConfig) WitnessPlaceholder(originalWitness []byte) ([]byte, error) + func (r *MultisigConfig) WitnessPlaceholderInLock() []byte + type SystemScript uint + const AnyoneCanPay + const Cheque + const Dao + const Omnilock + const PwLock + const Secp256k1Blake160MultisigAll + const Secp256k1Blake160SighashAll + const Sudt