Documentation ¶
Index ¶
- func Serialization(key *Extkey) (string, error)
- type Extkey
- func ChildKeyDeriv(parentKey *Extkey, index uint32) (*Extkey, error)
- func ChildKeyDerivPriv(parentKey *Extkey, index uint32) (*Extkey, error)
- func ChildKeyDerivPub(parentKey *Extkey, index uint32) (*Extkey, error)
- func Deserialization(serializedKey string) (*Extkey, error)
- func GenMasterKey(seed []byte) (*Extkey, error)
- func Neuter(privateKey *Extkey) (*Extkey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Serialization ¶
Serialization returns the serialized extended key as a string
Types ¶
type Extkey ¶
type Extkey struct { Version []byte Depth byte Fingerprint []byte ChildNumber []byte ChainCode []byte Key []byte }
ExtKey is a struct type representing a extended key according to BIP32 specifications
func ChildKeyDeriv ¶
ChildKeyDeriv is a generic interface for generating extended child keys from any exnteded parent keys, either private or public
func ChildKeyDerivPriv ¶
ChildKeyGenPriv returns an extended private child key using as input its extended parent private key and a child index (capable of producing both hardened and non-hardened keys)
func ChildKeyDerivPub ¶
ChildKeyGenPriv returns an extended public child key using as input its extended parent public key and a child index
func Deserialization ¶
Deserialization returns the ExtKey objet of a given serialized key
func GenMasterKey ¶
GenMasterKey takes a seed as an input and returns the extended key for the master key