Documentation ¶
Overview ¶
Package crypto 通用加密函数
Index ¶
- func NewPrivateKeyFromSeed(seed []byte) ([]byte, error)
- func NewPrivateKeyFromSeedByPath(seed []byte, path string) ([]byte, error)
- func NewSeedFromMnemonic(mnemonic string, password string) ([]byte, error)
- func ToEcdsa(privateKey []byte) *ecdsa.PrivateKey
- func ToSecp256k1(privateKey []byte) *secp256k1.PrivateKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPrivateKeyFromSeed ¶
Function NewPrivateKeyFromSeed 从种子中生成私钥
func NewPrivateKeyFromSeedByPath ¶
Function NewPrivateKeyFromSeedByPath 从种子中生成子私钥
func NewSeedFromMnemonic ¶
Function NewSeedFromMnemonic 从助记词获取种子
func ToSecp256k1 ¶
func ToSecp256k1(privateKey []byte) *secp256k1.PrivateKey
Function ToSecp256k1 获取secp256k1私钥
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.