Documentation ¶
Index ¶
Constants ¶
View Source
const ( // FairxCoinId (even tho there is no coin) the FairX HD space FairxCoinId = "950" // FairxDerivationPrefix is a prefix for FairX key pairs derivation. FairxDerivationPrefix = "m/44'/950'" // FairxNodeKeyPath is a derivation path of the node key FairxNodeKeyPath = "m/44'/950'/0'" // FairXKeyPathFormat is a path format used for FairX Node key pairs // Always hardened FairXKeyPathFormat = "m/44'/950'/%d'" // FirstHardenedIndex is the index of the first hardened key. FirstHardenedIndex = uint32(0x80000000) )
Variables ¶
View Source
var ( ErrInvalidPath = errors.New("Invalid derivation path") ErrNoPublicDerivation = errors.New("No public derivation for ed25519") )
Functions ¶
Types ¶
type Key ¶
func DeriveForPath ¶
DeriveForPath derives key for a path in BIP-44 format and a seed. Ed25119 derivation operated on hardened keys only.
func NewMasterKey ¶
NewMasterKey generates a new master key from seed.
Click to show internal directories.
Click to hide internal directories.