nervos

package
v0.12.22 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ShortFormat         byte = 1
	CodeHashSingleIndex byte = 0
	PrefixMainNet            = "ckb"
)

Variables

View Source
var (
	NervosChainBase string
	NervosChainId   crypto.Hash
)

Functions

func DecodeAddress

func DecodeAddress(address string) (prefix string, payload []byte, err error)

func EncodeAddress

func EncodeAddress(payload []byte) (string, error)

func GenerateAssetId

func GenerateAssetId(assetKey string) crypto.Hash

func VerifyAddress

func VerifyAddress(address string) error

func VerifyAssetKey

func VerifyAssetKey(assetKey string) error

func VerifyTransactionHash

func VerifyTransactionHash(hash string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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