hex

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MaxProofLength = 1024

Variables

This section is empty.

Functions

func FormatAddress

func FormatAddress(hexAddr string) string

FormatAddress makes sure the address is compliant with the heimdall-v2 format

func FormatHex added in v0.1.20

func FormatHex(data []byte) string

FormatHex returns a checksum hex string prefixed with 0x.

func IsTxHashNonEmpty

func IsTxHashNonEmpty(s string) bool

IsTxHashNonEmpty returns true if the input is a non-empty string.

func ValidateProof

func ValidateProof(proof string) error

ValidateProof checks if the proof is a valid hex string representing N 32-byte chunks, and not too long.

Types

This section is empty.

Jump to

Keyboard shortcuts

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