ethereum

package
v0.14.16 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AddressLength = 20
)

Variables

View Source
var (
	EthereumChainBase string
	EthereumChainId   crypto.Hash
)

Functions

func BuildChainAssetId added in v0.13.13

func BuildChainAssetId(base, asset string) crypto.Hash

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

type Address added in v0.12.23

type Address [AddressLength]byte

func (*Address) Hex added in v0.12.23

func (a *Address) Hex() string

Jump to

Keyboard shortcuts

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