eth

package
v0.0.0-...-23a414b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinAddrLen = 20
	MaxAddrLen = 32
)

Variables

This section is empty.

Functions

func PadOrTruncateAddress

func PadOrTruncateAddress(address []byte) []byte

PadOrTruncateAddress right-pads an address with zeros if it's shorter than `MinAddrLen` or takes the first `MaxAddrLen` if it's longer than that.

Types

This section is empty.

Jump to

Keyboard shortcuts

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