package
0.0.0-20240305095038-e87e1d8a3d70
Repository: https://github.com/ngchain/ngcore.git
Documentation: pkg.go.dev

# Functions

AES256GCMDecrypt is used for file decrypt.
AES256GCMEncrypt is used for file encrypt.
BigIntPlusPlus is a helper func to calculate i++ for big int i.
Bytes2Hex is a helper func to convert raw bytes to hex string.
Bytes2PublicKey is a helper func to convert **compressed** raw bytes to public key.
No description provided by the author
CombineBytes is a helper func to combine bytes without separator.
No description provided by the author
Hex2Bytes is a helper func to convert hex string to raw bytes.
No description provided by the author
No description provided by the author
InBytesList is a helper func to check whether the sub bytes in the li list.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PackUint16BE converts int16 to bytes in BigEndian.
PackUint16LE converts int16 to bytes in LittleEndian.
PackUint32BE converts int32 to bytes in BigEndian.
PackUint32LE converts int32 to bytes in LittleEndian.
PackUint64BE converts int64 to bytes in BigEndian.
PackUint64LE converts int64 to bytes in LittleEndian.
PublicKey2Bytes is a helper func to convert public key to the **compressed** raw bytes.
RandInt16 generates a random int16 number (-32768 to 32767).
RandInt32 generates a random int32 number (-2147483648 to 2147483647).
RandInt64 generates a random int64 number (-9223372036854775808 to 9223372036854775807).
RandUint16 generates a random uint16 number(0 to 65535).
RandUint32 generates a random uint32 number(0 to 4294967295).
RandUint64 generates a random uint64 number(0 to 18446744073709551615).
ReverseBytes converts bytes order between LittleEndian and BigEndian.
Sha3Sum256 is a helper func to calc & return the sha3 sum256 []byte hash.

# Variables

JSON acts as a global json module.

# Structs

No description provided by the author