util

package
v0.37.20-verify-evm-of... Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: AGPL-3.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromBase64

func FromBase64(bytesStr string) ([]byte, error)

FromBase64 convert input base64 encoded string to decoded bytes

func FromUint added in v0.36.2

func FromUint[U uint | uint64 | uint32](number U) string

FromUint convert uint to string

func SelectFilter

func SelectFilter(object interface{}, selectKeys []string) (interface{}, error)

SelectFilter selects the specified keys from the given object. The keys are in the json dot notation and must refer to leaf elements e.g. payload.collection_guarantees.signer_ids

func ToBase64

func ToBase64(byteValue []byte) string

ToBase64 converts byte input to string base64 encoded output

func ToUint32 added in v0.36.2

func ToUint32(uint32Str string) (uint32, error)

ToUint32 convert input string to uint64 number

func ToUint64

func ToUint64(uint64Str string) (uint64, error)

ToUint64 convert input string to uint64 number

Types

This section is empty.

Jump to

Keyboard shortcuts

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