utility

package
v0.0.0-...-358d922 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FloParams = chaincfg.Params{
	Name:             "flo",
	Net:              0xfdc0a5f1,
	PubKeyHashAddrID: 0x23,
	ScriptHashAddrID: 0x08,
}

Define some of the required parameters for a Florin coin network.

View Source
var FloTestnetParams = chaincfg.Params{
	Name:             "testFlo",
	Net:              0xfdc05af2,
	PubKeyHashAddrID: 115,
	ScriptHashAddrID: 198,
}

Functions

func CheckAddress

func CheckAddress(address string) bool

func CheckSignature

func CheckSignature(address string, signature string, message string) (bool, error)

func IsJSON

func IsJSON(s string) bool

reference: Cory LaNou, Mar 2 '14 at 15:21, http://stackoverflow.com/a/22129435/2576956

func SetTestnet

func SetTestnet(testnet bool)

func Testnet

func Testnet() bool

func UnSquashPatch

func UnSquashPatch(spb []byte) (jsonpatch.Patch, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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