Documentation ¶
Index ¶
- Constants
- func ConvertPrvKeyToPubKey(key string) (string, error)
- func Decrypt(publicKey, masterKey, cypherText string) (string, error)
- func Encrypt(publicKey, msg string) (string, error)
- func GenerateChildKey(key string, i uint32) (string, error)
- func GenerateMasterKeyByMnemonic(mnemonic string, language int) (string, error)
Constants ¶
View Source
const ( // HardenedKeyStart is the index at which a hardended key starts. // Each extended key has 2^31 normal child keys, and 2^31 hardned child keys. // Each of these child keys has an index. // The range for normal child keys is [0, 2^31 - 1] // The range for hardened child keys is [2^31, 2^32 - 1]. HardenedKeyStart = 0x80000000 // 2^31 -- 16进制 )
Variables ¶
This section is empty.
Functions ¶
func GenerateChildKey ¶
通过分层确定性私钥/公钥(如根私钥)推导出子私钥/公钥
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.