Documentation
¶
Index ¶
- Constants
- Variables
- func AddressToPub(account string, banano bool) (public_key []byte, err error)
- func GenerateSeed(rand io.Reader) (string, error)
- func GetAddressChecksum(pub ed25519.PublicKey) []byte
- func GetEnv(key string, fallback string) string
- func GetPippinConfigurationRoot() (string, error)
- func KeypairFromSeed(seed string, index uint32) (ed25519.PublicKey, ed25519.PrivateKey, error)
- func PubKeyToAddress(pub ed25519.PublicKey, banano bool) string
- func Reversed(str []byte) (result []byte)
- func ToBool(val interface{}) (bool, error)
- func ToInt(val interface{}) (int, error)
- func ToPtr[T interface{}](value T) *T
- func Validate64HexHash(hash string) bool
- type AESCrypt
Constants ¶
View Source
const EncodeNano = "13456789abcdefghijkmnopqrstuwxyz"
nano uses a non-standard base32 character set.
Variables ¶
View Source
var NanoEncoding = base32.NewEncoding(EncodeNano)
Functions ¶
func GenerateSeed ¶
Generates a seed, if rand is nil will use crypto/rand to generate secure seeds
func GetAddressChecksum ¶
func KeypairFromSeed ¶
Generate a keypair from a seed at specified index
func Validate64HexHash ¶
Types ¶
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Package ed25519 implements the Ed25519 signature algorithm.
|
Package ed25519 implements the Ed25519 signature algorithm. |
Click to show internal directories.
Click to hide internal directories.