Documentation ¶
Index ¶
Constants ¶
View Source
const ( // FairxCoinId (even tho there is no coin) the FairX HD space FairxCoinId = "950" // FairxMasterKeyPath FairxMasterKeyPath = "m/44'/0'/0'/0'" // FairXKeyPathFormat is a path format used for FairX Node key pairs // Always hardened = m/44'/org_id'/credential_id'/claim_id' FairXKeyPathFormat = "m/44'/%d'/%d'/%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.
func (*Key) PublicKeyMultibase ¶
PublicKeyString returns Base64URL encoded representation of public key
Click to show internal directories.
Click to hide internal directories.