convert

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: GPL-3.0 Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BigIntArrayToByteArray

func BigIntArrayToByteArray(input []*big.Int) [][]byte

BigIntArrayToByteArray can change []*big.Int to [][]byte

func ByteArrayToBigIntArray

func ByteArrayToBigIntArray(input [][]byte) []*big.Int

ByteArrayToBigIntArray can change [][]byte to big.Int

func ByteArrayToPkArray

func ByteArrayToPkArray(input [][]byte) []*ecdsa.PublicKey

ByteArrayToPkArray can change [][]byte to []*ecdsa.PublicKey

func BytesToUint64

func BytesToUint64(input []byte) uint64

BytesToUint64 use a big.Int to transfer uint64 to bytes Must input a big.Int bytes

func PkArrayToByteArray

func PkArrayToByteArray(input []*ecdsa.PublicKey) [][]byte

PkArrayToByteArray can change []*ecdsa.PublicKey to [][]byte

func StringToUint64

func StringToUint64(input string) uint64

StringToUint64 can change string to uint64 through a big.Int, Input must be a 10 base number

func Uint64StringToByte

func Uint64StringToByte(input string) []byte

Uint64StringToByte can change uint64 string to bytes through a big.Int, Input must be a 10 base number

func Uint64ToBytes

func Uint64ToBytes(input uint64) []byte

--------------------------------------------------------------------------- Uint64ToBytes use a big.Int to transfer uint64 to bytes Must use big.Int to reverse

func Uint64ToString

func Uint64ToString(input uint64) string

Uint64ToString can change uint64 to string through a big.Int, output is a 10 base number

Types

This section is empty.

Jump to

Keyboard shortcuts

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