util

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 4 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddressToPubkey

func AddressToPubkey(address string) (pubkey []byte, err error)

AddressToPubkey converts address to a pubkey.

func PubkeyToAddress

func PubkeyToAddress(pubkey []byte) (address string, err error)

PubkeyToAddress converts pubkey to an address.

Types

type NanoAmount

type NanoAmount struct {
	Raw *big.Int
}

NanoAmount wraps a raw amount.

func NanoAmountFromString

func NanoAmountFromString(s string) (n NanoAmount, err error)

NanoAmountFromString parses NANO amounts in strings.

func (NanoAmount) String

func (n NanoAmount) String() string

Jump to

Keyboard shortcuts

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