bytes

package
v0.1.43 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddressFromHex

func AddressFromHex(s string) ([]byte, error)

AddressFromHex will return the [20]byte value of a address hex string Any values exceeding [20]byte will be trimmed.

func AddressToHex added in v0.1.37

func AddressToHex(value []byte) (string, error)

AddressToHex returns the string value of an address. Addresses must be a 20 byte array.

Types

This section is empty.

Jump to

Keyboard shortcuts

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