Versions in this module Expand all Collapse all v1 v1.1.2 Sep 16, 2021 Changes in this version + var ErrBadValue = errors.New("bad value") + var ErrMultisigFormat = errors.New("bad multisig program format") + var ErrUnresolvedJump = errors.New("unresolved jump target") + func DefaultCoinbaseProgram() ([]byte, error) + func GetIssuanceProgramRestrictHeight(program []byte) int64 + func IsUnspendable(prog []byte) bool + func P2PKHSigProgram(pubkeyHash []byte) ([]byte, error) + func P2SHProgram(scriptHash []byte) ([]byte, error) + func P2SPMultiSigProgram(pubkeys []ed25519.PublicKey, nrequired int) ([]byte, error) + func P2SPMultiSigProgramWithHeight(pubkeys []ed25519.PublicKey, nrequired int, blockHeight int64) ([]byte, error) + func P2WPKHProgram(hash []byte) ([]byte, error) + func P2WSHProgram(hash []byte) ([]byte, error) + func RetireProgram(comment []byte) ([]byte, error) + type Builder struct + func NewBuilder() *Builder + func (b *Builder) AddData(data []byte) *Builder + func (b *Builder) AddInt64(n int64) *Builder + func (b *Builder) AddJump(target int) *Builder + func (b *Builder) AddJumpIf(target int) *Builder + func (b *Builder) AddOp(op vm.Op) *Builder + func (b *Builder) AddRawBytes(data []byte) *Builder + func (b *Builder) Build() ([]byte, error) + func (b *Builder) NewJumpTarget() int + func (b *Builder) SetJumpTarget(target int) *Builder