key

package
v0.1.0-alpha.0...-0b1224c Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2019 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const PrimaryAccountIndex uint32 = 0

PrimaryAccountIndex is the index to use in DeriveAccount when deriving the primary account key for a given seed.

Variables

This section is empty.

Functions

func DeriveAccount

func DeriveAccount(seed []byte, i uint32) *keypair.Full

DeriveAccount derives the account key at index i from from the root key determined by seed.

Only "hardened" derivation is supported. For convenience, indexes below derivation.FirstHardenedIndex are converted to hardened indexes.

func DeriveAccountPrimary

func DeriveAccountPrimary(seed []byte) *keypair.Full

DeriveAccountPrimary derives the primary account key from from the root key determined by seed.

func PublicKeyXDR

func PublicKeyXDR(kp *keypair.Full) xdr.PublicKey

PublicKeyXDR returns the public-key part of k in XDR format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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