crypto

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package crypto 通用加密函数

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPrivateKeyFromSeed

func NewPrivateKeyFromSeed(seed []byte) ([]byte, error)

Function NewPrivateKeyFromSeed 从种子中生成私钥

func NewPrivateKeyFromSeedByPath

func NewPrivateKeyFromSeedByPath(seed []byte, path string) ([]byte, error)

Function NewPrivateKeyFromSeedByPath 从种子中生成子私钥

func NewSeedFromMnemonic

func NewSeedFromMnemonic(mnemonic string, password string) ([]byte, error)

Function NewSeedFromMnemonic 从助记词获取种子

func ToEcdsa

func ToEcdsa(privateKey []byte) *ecdsa.PrivateKey

Function ToEcdsa 获取ecdsa私钥

func ToSecp256k1

func ToSecp256k1(privateKey []byte) *secp256k1.PrivateKey

Function ToSecp256k1 获取secp256k1私钥

Types

This section is empty.

Jump to

Keyboard shortcuts

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