Documentation ¶
Overview ¶
Package urtypes implements decoders for UR types specified in BCR-2020-006.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Derivation ¶
type Derivation struct { Type DerivationType // Index is the child index, without the hardening offset. // For RangeDerivations, Index is the start of the range. Index uint32 Hardened bool // End represents the end of a RangeDerivation. End uint32 }
type DerivationType ¶
type DerivationType int
const ( ChildDerivation DerivationType = iota WildcardDerivation RangeDerivation )
type KeyDescriptor ¶
type KeyDescriptor struct { Network *chaincfg.Params MasterFingerprint uint32 DerivationPath Path Children []Derivation KeyData []byte ChainCode []byte ParentFingerprint uint32 }
func (KeyDescriptor) Encode ¶
func (k KeyDescriptor) Encode() []byte
Encode the key in the format described by BCR-2020-007.
func (KeyDescriptor) ExtendedKey ¶ added in v0.12.0
func (k KeyDescriptor) ExtendedKey() *hdkeychain.ExtendedKey
func (KeyDescriptor) String ¶
func (k KeyDescriptor) String() string
type MultisigType ¶ added in v0.10.0
type MultisigType int
const ( Singlesig MultisigType = iota SortedMulti )
type OutputDescriptor ¶
type OutputDescriptor struct { Title string Script Script Threshold int Type MultisigType Keys []KeyDescriptor }
func (OutputDescriptor) Encode ¶
func (o OutputDescriptor) Encode() []byte
Encode the output descriptor in the format described by BCR-2020-010.
Click to show internal directories.
Click to hide internal directories.