common

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: LGPL-3.0 Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes2Hex

func Bytes2Hex(bytes []byte) string

Bytes2Hex encodes bytes as a hex string.

func DecodeBase58

func DecodeBase58(input string) ([]byte, error)

func EncodeBase58

func EncodeBase58(input []byte) string

func Has0xPrefix

func Has0xPrefix(str string) bool

Has0xPrefix validates str begins with '0x' or '0X'.

func Hex2Bytes

func Hex2Bytes(s string) ([]byte, error)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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