utils

package
v0.0.0-...-d44ee03 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddressSha256

func AddressSha256(account string, seed string) string

AddressSha256 - Hashes an address excluding prefix

func AddressToPub

func AddressToPub(account string) string

func GenerateAddress

func GenerateAddress() string

func GetEnv

func GetEnv(key, fallback string) string

func PKSha256

func PKSha256(pubkey string, seed string) string

PKSha256 - Hashes a public key with seed

func RawToBigInt

func RawToBigInt(raw string) (*big.Int, error)

Raw to Big - converts raw amount to a big.Int

func RawToNano

func RawToNano(raw string, truncate bool) (float64, error)

RawToNano - Converts Raw amount to usable Nano amount

func ValidateAddress

func ValidateAddress(account string) bool

ValidateAddress - Returns true if a nano address is valid

Types

This section is empty.

Jump to

Keyboard shortcuts

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