Documentation ¶
Overview ¶
Package wallet is a guide and assistant in working with addresses, mnemonic and initial phrases, private and public keys.
Index ¶
- func AddressByPublicKey(publicKey string) (string, error)
- func AddressToHex(address string) ([]byte, error)
- func BytesToAddress(address [20]byte) string
- func IsValidAddress(address string) bool
- func NewMnemonic() (string, error)
- func PrivateKeyBySeed(seed string) (string, error)
- func PubPrefix04ToMp(key string) string
- func PublicKeyByPrivateKey(privateKey string) (string, error)
- func PublicKeyToHex(key string) ([]byte, error)
- func Seed(mnemonic string) (string, error)
- type Wallet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressByPublicKey ¶
AddressByPublicKey returns Minter address from public key.
func AddressToHex ¶
AddressToHex converts string address to hex bytes
func BytesToAddress ¶
BytesToAddress converts hex value to [20]byte of address
func IsValidAddress ¶
IsValidAddress checks address for correctness
func PrivateKeyBySeed ¶
PrivateKeyBySeed returns private key from seed.
func PublicKeyByPrivateKey ¶
PublicKeyByPrivateKey returns public key from private key.
func PublicKeyToHex ¶
PublicKeyToHex converts string public key to hex bytes
Types ¶
Click to show internal directories.
Click to hide internal directories.