Versions in this module Expand all Collapse all v1 v1.0.0 Mar 22, 2018 Changes in this version + const ADDRESS_PREFIX + var ALLOWED_PREFIX = [...]string + var ErrImpossibleDecode = errors.New("impossible to decode the seed") + var SupportedVersions = [...]uint8 + func CreateKeyPair(b []byte) (PublicKey, SecretKey, error) + func GenerateRandomKeyPair() (PublicKey, SecretKey, error) + func RecoverKeyPairFromClassicalSeed(seed string, i uint32) (PublicKey, SecretKey, error) + func RecoverKeyPairFromCoinSeed(seed CoinSeed, i uint32) (PublicKey, SecretKey, error) + type Address string + func (addr Address) GetChecksum() ([]byte, error) + func (addr Address) GetPrefix() string + func (addr Address) GetPublicKey() (PublicKey, error) + func (addr Address) IsCorrectlyFormatted() bool + func (addr Address) IsValid() bool + func (addr Address) RemovePrefix() Address + func (addr Address) UpdatePrefix() Address + func (d *Address) MarshalJSON() ([]byte, error) + func (d *Address) UnmarshalJSON(data []byte) (err error) + type CoinSeed []byte + func RecoverCoinSeed(seed Seed, coin Currency) CoinSeed + type Currency uint32 + const Base + const Nano + type PublicKey []byte + func (d *PublicKey) UnmarshalJSON(data []byte) (err error) + func (d PublicKey) MarshalJSON() ([]byte, error) + func (pk *PublicKey) CreateAddress() Address + func (pk PublicKey) CompareChecksum(checksum []byte) bool + func (pk PublicKey) CompareSignature(message, sig []byte) bool + func (pk PublicKey) CreateChecksum() []byte + type SecretKey []byte + func (sk SecretKey) CreateSignature(message []byte) ([]byte, error) + func (sk SecretKey) PublicKey() (PublicKey, error) + type Seed []byte + func (s *Seed) CreateKeyPair(coin Currency, index uint32) (PublicKey, SecretKey, error) + type SeedFY struct + Memory uint8 + Salt []byte + Thread uint8 + Time uint8 + Type uint8 + Version uint8 + func NewSeedFY() (sf SeedFY, err error) + func ReadSeedFY(s string) (sf SeedFY, err error) + func (sf *SeedFY) Encode() (string, error) + func (sf *SeedFY) IsValid() (r bool) + func (sf *SeedFY) RecoverSeed(password string, additionaldata []byte) Seed