wallet

package
v0.0.0-...-3f3ae68 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWalletInfoUnspecified = errors.New("Wallet info provider unspecified")

	ErrWalletInfoNotExist = errors.New("The specified wallet info does not exist")

	ErrUnsupportKeystore = errors.New("The chain type does not support keystore")

	ErrInvalidMnemonic = errors.New("Invalid mnemonic")
)

Functions

func ByteToHex

func ByteToHex(data []byte) string

func CombineShares

func CombineShares(shares [][]byte) ([]byte, error)

CombineShares shamir合并私钥

func GenMnemonic

func GenMnemonic() (string, error)

GenMnemonic 生成熵128位的助记词

func HexToByte

func HexToByte(hex string) ([]byte, error)

func IsValidMnemonic

func IsValidMnemonic(mnemonic string) bool

IsValidMnemonic 判断助记词是否有效

func SplitToShares

func SplitToShares(privateKey string, minimumShares int, totalShares int) ([][]byte, error)

SplitToShares shamir分割私钥

Types

This section is empty.

Jump to

Keyboard shortcuts

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