address

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ZeroAddr = "0000000000000000000000000000000000000000"

ZeroAddr 0

View Source
var ZeroAddrWithPrefix = "0x0000000000000000000000000000000000000000"

ZeroAddrWithPrefix 0x0

Functions

func GetCleanAddr added in v1.0.1

func GetCleanAddr(addr string) string

GetCleanAddr remove 0x prefix

func IsValidAddress

func IsValidAddress(addr ...string) bool

IsValidAddress validity verification

func IsZeroAddress

func IsZeroAddress(addr string) bool

IsZeroAddress return bool

Types

type Address

type Address [20]byte

Address chainmaker address

func ParseAddress

func ParseAddress(addrStr string) (*Address, error)

ParseAddress get Address obj from str

func (*Address) ToString

func (addr *Address) ToString() string

ToString Address obj to str

Jump to

Keyboard shortcuts

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