nervos

package
v0.16.8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeHashIndexSingle       byte = 0
	CodeHashIndexAnyoneCanPay byte = 2
	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 EncodeBech32mAddress added in v0.13.12

func EncodeBech32mAddress(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