Documentation ¶
Index ¶
- Constants
- Variables
- func AddressToPub(account Account) (public_key []byte, err error)
- func ChangeMonkeyServer(URL string)
- func GenerateKey() (ed25519.PublicKey, ed25519.PrivateKey)
- func GetAddressChecksum(pub ed25519.PublicKey) []byte
- func GetMonkeyDescriptionURI() string
- func GetMonkeyServer() string
- func GrabMonkey(ctx context.Context, publicAddr Account, format legion.ImageFormat) (io.Reader, error)
- func KeypairFromPrivateKey(private_key string) (ed25519.PublicKey, ed25519.PrivateKey)
- func KeypairFromSeed(seed io.Reader, index uint32) (ed25519.PublicKey, ed25519.PrivateKey, error)
- func Reversed(str []byte) (result []byte)
- func ValidateAddress(account Account) bool
- type Account
- type BlockHash
- type Signature
- type Work
Constants ¶
View Source
const EncodeNano = "13456789abcdefghijkmnopqrstuwxyz"
nano uses a non-standard base32 character set.
Variables ¶
View Source
var NanoEncoding = base32.NewEncoding(EncodeNano)
Functions ¶
func AddressToPub ¶
func ChangeMonkeyServer ¶
func ChangeMonkeyServer(URL string)
func GenerateKey ¶
func GenerateKey() (ed25519.PublicKey, ed25519.PrivateKey)
func GetAddressChecksum ¶
func GetMonkeyDescriptionURI ¶
func GetMonkeyDescriptionURI() string
func GetMonkeyServer ¶
func GetMonkeyServer() string
func GrabMonkey ¶
func KeypairFromPrivateKey ¶
func KeypairFromPrivateKey(private_key string) (ed25519.PublicKey, ed25519.PrivateKey)
func KeypairFromSeed ¶
func ValidateAddress ¶
Types ¶
type Account ¶
type Account string
func GeneratePrivateKeyAndFirstPublicAddress ¶
Generate a private key and the first public account key
func PubKeyToAddress ¶
Click to show internal directories.
Click to hide internal directories.