Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Note ¶
Note contains the data of a note
func NewNoteFromString ¶
NewNoteFromString converts a base58 encoded string with HRP to a Note
func (*Note) Deserialize ¶
Deserialize converts a byte slice to Data
func (Note) PreimageHash ¶
func (Note) VtxoScript ¶
func (n Note) VtxoScript() script.TapscriptsVtxoScript
type NoteClosure ¶
type NoteClosure struct {
PreimageHash [preimageSize]byte
}
implements tree.Closure interface, can't be used in a classic vtxo script but only in the fake vtxo note script
func (*NoteClosure) Decode ¶
func (n *NoteClosure) Decode(script []byte) (bool, error)
Decode attempts to decode a script into a NoteClosure
func (*NoteClosure) Script ¶
func (n *NoteClosure) Script() ([]byte, error)
Script returns the tapscript for the note closure
Click to show internal directories.
Click to hide internal directories.