utils

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryBytesFromString

func QueryBytesFromString(query string) ([]byte, error)

converts a hex string to bytes (query data or query ID)

func QueryIDFromData

func QueryIDFromData(queryData []byte) []byte

func QueryIDFromDataString

func QueryIDFromDataString(queryData string) ([]byte, error)

func Remove0xPrefix

func Remove0xPrefix(hexString string) string

Remove0xPrefix removes the '0x' prefix from a hex string and returns the result in lower case.

Types

This section is empty.

Jump to

Keyboard shortcuts

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