Documentation ¶
Index ¶
- Constants
- func AlwaysFalseBytes() types.PredicateBytes
- func AlwaysTrueBytes() types.PredicateBytes
- func EmptyArgument() []byte
- func ExtractPubKeyHashFromP2pkhPredicate(pb []byte) ([]byte, error)
- func IsP2pkhTemplate(predicate *predicates.Predicate) bool
- func NewP2pkh256BytesFromKey(pubKey []byte) types.PredicateBytes
- func NewP2pkh256BytesFromKeyHash(pubKeyHash []byte) types.PredicateBytes
- func NewP2pkh256FromKey(pubKey []byte) predicates.Predicate
- func NewP2pkh256FromKeyHash(pubKeyHash []byte) predicates.Predicate
- func NewP2pkh256SignatureBytes(sig, pubKey []byte) []byte
- 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() types.PredicateBytes
func AlwaysTrueBytes ¶
func AlwaysTrueBytes() types.PredicateBytes
func EmptyArgument ¶ added in v0.4.0
func EmptyArgument() []byte
func IsP2pkhTemplate ¶
func IsP2pkhTemplate(predicate *predicates.Predicate) bool
func NewP2pkh256BytesFromKey ¶
func NewP2pkh256BytesFromKey(pubKey []byte) types.PredicateBytes
func NewP2pkh256BytesFromKeyHash ¶
func NewP2pkh256BytesFromKeyHash(pubKeyHash []byte) types.PredicateBytes
func NewP2pkh256FromKey ¶
func NewP2pkh256FromKey(pubKey []byte) predicates.Predicate
func NewP2pkh256FromKeyHash ¶
func NewP2pkh256FromKeyHash(pubKeyHash []byte) predicates.Predicate
Types ¶
type TemplateRunner ¶
type TemplateRunner struct{}
func New ¶ added in v0.4.0
func New() TemplateRunner
func (TemplateRunner) Execute ¶
func (TemplateRunner) Execute(ctx context.Context, p *predicates.Predicate, args []byte, txo *types.TransactionOrder, env predicates.TxContext) (bool, error)
func (TemplateRunner) ID ¶ added in v0.4.0
func (TemplateRunner) ID() uint64
Click to show internal directories.
Click to hide internal directories.