Documentation ¶
Index ¶
- Constants
- Variables
- func AddressToPub(account types.Account) (public_key []byte, err error)
- func GenerateKey() (ed25519.PublicKey, ed25519.PrivateKey)
- func GetAddressChecksum(pub ed25519.PublicKey) []byte
- func KeypairFromPrivateKey(private_key string) (ed25519.PublicKey, ed25519.PrivateKey)
- func KeypairFromSeed(seed string, index uint32) (ed25519.PublicKey, ed25519.PrivateKey)
- func PubKeyToAddress(pub ed25519.PublicKey) types.Account
- func ValidateAddress(account types.Account) bool
Constants ¶
View Source
const EncodeNano = "13456789abcdefghijkmnopqrstuwxyz"
nano uses a non-standard base32 character set.
Variables ¶
View Source
var NanoEncoding = base32.NewEncoding(EncodeNano)
Functions ¶
func GenerateKey ¶
func GenerateKey() (ed25519.PublicKey, ed25519.PrivateKey)
func GetAddressChecksum ¶
func KeypairFromPrivateKey ¶
func KeypairFromPrivateKey(private_key string) (ed25519.PublicKey, ed25519.PrivateKey)
func KeypairFromSeed ¶
func ValidateAddress ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.