utils

package
v0.0.0-...-13efa11 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromBigIntString

func FromBigIntString(s BigIntString) (result *uint256.Int, err error)

func FromHex

func FromHex(s string) []byte

FromHex returns the bytes represented by the hexadecimal string s. s may be prefixed with "0x".

func Hex2Bytes

func Hex2Bytes(str string) []byte

Hex2Bytes returns the bytes represented by the hexadecimal string str.

func SendAlert

func SendAlert(msg, description string)

func UInt256FromHex

func UInt256FromHex(s string) *uint256.Int

Types

type BigIntString

type BigIntString string

func (*BigIntString) UnmarshalJSON

func (big *BigIntString) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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