Documentation ¶
Index ¶
- Constants
- Variables
- func AddressToPub(account string) (public_key []byte, err error)
- func CalculateDifficulty(multiplier int64) uint64
- func GetAddressChecksum(pub ed25519.PublicKey) []byte
- func IsValidEmail(email string) bool
- func IsWorkValid(previous string, difficultyMultiplier int, w string) bool
- func Reversed(str []byte) (result []byte)
- func ValidateAddress(account string) bool
- func ValidatePassword(p string) error
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 CalculateDifficulty ¶
func GetAddressChecksum ¶
func IsValidEmail ¶
func ValidateAddress ¶
ValidateAddress - Returns true if a banano address is valid
func ValidatePassword ¶
8 characters long, at least one lowercase letter, one uppercase letter, one number, one special character
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.