package
1.5.0
Repository: https://github.com/qlcchain/qlc-go-sdk.git
Documentation: pkg.go.dev

# Packages

Package hexutil implements hex encoding with 0x prefix.

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BigMax returns the larger of x or y.
BigMin returns the smaller of x or y.
BigPow returns a ** b as a big integer.
BigUint64 returns the integer casted to a uint64 and returns whether it overflowed in the process.
No description provided by the author
Byte returns the byte at position n, with the supplied padlength in Little-Endian encoding.
Bytes2Hex returns the hexadecimal encoding of d.
No description provided by the author
No description provided by the author
CopyBytes returns an exact copy of the provided bytes.
CreateDirIfNotExist create given folder.
No description provided by the author
DecryptBytes decrypt raw json to raw.
No description provided by the author
EncryptBytes encrypts raw by passphrase to json binary.
Exp implements exponentiation by squaring.
FromHex returns the bytes represented by the hexadecimal string s.
No description provided by the author
No description provided by the author
Hex2Bytes returns the bytes represented by the hexadecimal string str.
Hex2BytesFixed returns bytes of a specified fixed length flen.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LeftPadBytes zero-pads slice to the left up to length l.
No description provided by the author
No description provided by the author
PaddedBigBytes encodes a big integer as a big-endian byte slice.
No description provided by the author
No description provided by the author
ReadBits encodes the absolute amount of bigint as big-endian bytes.
No description provided by the author
RightPadBytes zero-pads slice to the right up to length l.
S256 interprets x as a two's complement number.
SafeAdd returns the result and whether overflow occurred.
SafeMul returns multiplication result and whether overflow occurred.
SafeSub returns subtraction result and whether overflow occurred.
No description provided by the author
No description provided by the author
ToHex returns the hex representation of b, prefixed with '0x'.
No description provided by the author
No description provided by the author
ToWordSize returns the ceiled word size required for memory expansion.
trim the '\00' byte.
TrimQuotes trim quotes of string if quotes exist.
U256 encodes as a 256 bit two's complement number.

# Constants

No description provided by the author
StandardScryptN is the N parameter of Scrypt encryption algorithm, using 256MB memory and taking approximately 1s CPU time on a modern processor.
StandardScryptP is the P parameter of Scrypt encryption algorithm, using 256MB memory and taking approximately 1s CPU time on a modern processor.
number of bits in a big.Word.
number of bytes in a big.Word.
number of bytes in a vm word.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author