util

package
v0.0.0-...-17a8ecb Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 4 Imported by: 0

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 CGAAmount

type CGAAmount struct {
	Raw *big.Int
}

CGAAmount wraps a raw amount.

func CGAAmountFromString

func CGAAmountFromString(s string) (n CGAAmount, err error)

CGAAmountFromString parses CGA amounts in strings.

func (CGAAmount) String

func (n CGAAmount) String() string

Jump to

Keyboard shortcuts

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