templates

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: AGPL-3.0 Imports: 9 Imported by: 10

Documentation

Index

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 ExtractPubKeyHashFromP2pkhPredicate

func ExtractPubKeyHashFromP2pkhPredicate(pb []byte) ([]byte, error)

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

func NewP2pkh256SignatureBytes

func NewP2pkh256SignatureBytes(sig, pubKey []byte) []byte

Types

type TemplateRunner

type TemplateRunner struct{}

func New added in v0.4.0

func New() TemplateRunner

func (TemplateRunner) Execute

func (TemplateRunner) ID added in v0.4.0

func (TemplateRunner) ID() uint64

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL