validation

package
v0.0.0-...-b370a20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2024 License: MIT Imports: 10 Imported by: 5

Documentation

Index

Constants

View Source
const EncodeNano = "13456789abcdefghijkmnopqrstuwxyz"

nano uses a non-standard base32 character set.

Variables

Functions

func AddressToPub

func AddressToPub(account string) (public_key []byte, err error)

Convert address to a public key

func CalculateDifficulty

func CalculateDifficulty(multiplier int64) uint64

func GetAddressChecksum

func GetAddressChecksum(pub ed25519.PublicKey) []byte

func IsValidEmail

func IsValidEmail(email string) bool

func IsWorkValid

func IsWorkValid(previous string, difficultyMultiplier int, w string) bool

func Reversed

func Reversed(str []byte) (result []byte)

func ValidateAddress

func ValidateAddress(account string) bool

ValidateAddress - Returns true if a banano address is valid

func ValidatePassword

func ValidatePassword(p string) error

8 characters long, at least one lowercase letter, one uppercase letter, one number, one special character

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL