Documentation ¶
Index ¶
- Constants
- Variables
- func AddressToPub(account string) (public_key []byte, err error)
- func BananoToRaw(banano float64) string
- func GetAddressChecksum(pub ed25519.PublicKey) []byte
- func GetEnv(key string, fallback string) string
- func IPAddress(r *http.Request) string
- func NanoToRaw(nano float64) string
- func RawToBanano(raw string, truncate bool) (float64, error)
- func RawToBigInt(raw string) (*big.Int, error)
- func RawToNano(raw string, truncate bool) (float64, error)
- func Reversed(str []byte) (result []byte)
- func ValidateAddress(account string, bananoMode bool) 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 AddressToPub ¶
Convert address to a public key
func BananoToRaw ¶
BananoToRaw - Converts Banano amount to Raw amount
func GetAddressChecksum ¶
func RawToBanano ¶
RawToBanano - Converts Raw amount to usable Banano amount
func RawToBigInt ¶
Raw to Big - converts raw amount to a big.Int
func ValidateAddress ¶
ValidateAddress - Returns true if a nano/banano address is valid
Types ¶
This section is empty.
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.