Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidChild = errors.New("invalid child") ErrInvalidKey = errors.New("invalid key") )
Functions ¶
This section is empty.
Types ¶
type ExtendedKey ¶
type ExtendedKey struct {
// contains filtered or unexported fields
}
func Key ¶
func Key(masterKey *ecdsa.PrivateKey, idx uint32) (*ExtendedKey, *types.Salt, error)
func PrivKeyToExtKey ¶
func PrivKeyToExtKey(key *ecdsa.PrivateKey, chainCode []byte) (*ExtendedKey, error)
func PubKeyToExtKey ¶
func PubKeyToExtKey(pub *ecdsa.PublicKey, chainCode []byte) (*ExtendedKey, error)
func (*ExtendedKey) Child ¶
func (k *ExtendedKey) Child(idx uint32) (*ExtendedKey, error)
func (*ExtendedKey) PrivkeyBytes ¶
func (k *ExtendedKey) PrivkeyBytes() ([]byte, error)
func (*ExtendedKey) PubkeyBytes ¶
func (k *ExtendedKey) PubkeyBytes() []byte
func (*ExtendedKey) ToPrivkey ¶
func (k *ExtendedKey) ToPrivkey() (*ecdsa.PrivateKey, error)
Click to show internal directories.
Click to hide internal directories.