Documentation ¶
Index ¶
- Constants
- func AlwaysFalseBytes() predicates.PredicateBytes
- func AlwaysTrueArgBytes() []byte
- func AlwaysTrueBytes() predicates.PredicateBytes
- func ExtractPubKeyHashFromP2pkhPredicate(pb []byte) ([]byte, error)
- func IsP2pkhTemplate(predicate *predicates.Predicate) bool
- func NewP2pkh256BytesFromKey(pubKey []byte) predicates.PredicateBytes
- func NewP2pkh256BytesFromKeyHash(pubKeyHash []byte) predicates.PredicateBytes
- func NewP2pkh256FromKey(pubKey []byte) predicates.Predicate
- func NewP2pkh256FromKeyHash(pubKeyHash []byte) predicates.Predicate
- func NewP2pkh256SignatureBytes(sig, pubKey []byte) []byte
- type AlwaysFalse
- type AlwaysTrue
- type P2pkh256
- type PredicateTemplate
- type TemplateRunner
Constants ¶
View Source
const ( AlwaysFalseID byte = iota AlwaysTrueID P2pkh256ID )
View Source
const TemplateStartByte = 0x00
Variables ¶
This section is empty.
Functions ¶
func AlwaysFalseBytes ¶
func AlwaysFalseBytes() predicates.PredicateBytes
func AlwaysTrueArgBytes ¶
func AlwaysTrueArgBytes() []byte
func AlwaysTrueBytes ¶
func AlwaysTrueBytes() predicates.PredicateBytes
func IsP2pkhTemplate ¶
func IsP2pkhTemplate(predicate *predicates.Predicate) bool
func NewP2pkh256BytesFromKey ¶
func NewP2pkh256BytesFromKey(pubKey []byte) predicates.PredicateBytes
func NewP2pkh256BytesFromKeyHash ¶
func NewP2pkh256BytesFromKeyHash(pubKeyHash []byte) predicates.PredicateBytes
func NewP2pkh256FromKey ¶
func NewP2pkh256FromKey(pubKey []byte) predicates.Predicate
func NewP2pkh256FromKeyHash ¶
func NewP2pkh256FromKeyHash(pubKeyHash []byte) predicates.Predicate
Types ¶
type AlwaysFalse ¶
type AlwaysFalse struct{}
func (*AlwaysFalse) Execute ¶
func (t *AlwaysFalse) Execute(_, _, _ []byte) error
func (*AlwaysFalse) ID ¶
func (t *AlwaysFalse) ID() byte
type AlwaysTrue ¶
type AlwaysTrue struct{}
func (*AlwaysTrue) Execute ¶
func (t *AlwaysTrue) Execute(_, sig, _ []byte) error
func (*AlwaysTrue) ID ¶
func (t *AlwaysTrue) ID() byte
type PredicateTemplate ¶
type TemplateRunner ¶
type TemplateRunner struct {
// contains filtered or unexported fields
}
func (*TemplateRunner) Execute ¶
func (t *TemplateRunner) Execute(p *predicates.Predicate, sig []byte, sigData []byte) error
Click to show internal directories.
Click to hide internal directories.