Documentation ¶
Index ¶
- Variables
- func BlockMultiSigProgram(pubkeys []ed25519.PublicKey, nrequired int) ([]byte, error)
- func IsUnspendable(prog []byte) bool
- func P2SPMultiSigProgram(pubkeys []ed25519.PublicKey, nrequired int) ([]byte, error)
- func ParseBlockMultiSigProgram(script []byte) ([]ed25519.PublicKey, int, error)
- func ParseP2SPMultiSigProgram(program []byte) ([]ed25519.PublicKey, int, error)
- type Builder
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBadValue = errors.New("bad value") ErrMultisigFormat = errors.New("bad multisig program format") )
Functions ¶
func BlockMultiSigProgram ¶
BlockMultiSigProgram returns a valid multisignature consensus program where nrequired of the keys in pubkeys are required to have signed the block for success. An ErrBadValue will be returned if nrequired is larger than the number of keys provided. The result is: BLOCKSIGHASH <pubkey>... <nrequired> <npubkeys> CHECKMULTISIG
func IsUnspendable ¶
func P2SPMultiSigProgram ¶
Types ¶
type Builder ¶
type Builder struct {
Program []byte
}
func NewBuilder ¶
func NewBuilder() *Builder
func (*Builder) AddRawBytes ¶
Click to show internal directories.
Click to hide internal directories.