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

# Functions

BigToCompact converts a whole number N to a compact representation using an unsigned 32-bit number.
BigToHash converts a big.Int into a Hash.
No description provided by the author
BytesToAddress convert byte array to Address.
BytesToBalance create balance from byte slice.
No description provided by the author
No description provided by the author
No description provided by the author
CalcDifficultyRatio returns the proof-of-work difficulty as a multiple of the minimum difficulty using the passed bits field from the header of a block.
No description provided by the author
CalcWork calculates a work value from difficulty bits.
No description provided by the author
No description provided by the author
No description provided by the author
CompactToBig converts a compact representation of a whole number N to an unsigned 32-bit number.
GenerateAddress generate qlc address.
HashBytes hash data by blake2b.
No description provided by the author
HashToBig converts a Hash into a big.Int that can be used to perform math comparisons.
HexToAddress convert hex address string to Address.
No description provided by the author
IsValidHexAddress check Hex address string is valid.
KeypairFromPrivateKey generate key pair from private key.
KeypairFromSeed generate key pair from seed.
NewAccount creates a new account with the given private key.
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
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
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
NewSeed generate new seed.
No description provided by the author
No description provided by the author
NewWorker create new worker.
PubToAddress convert ed25519.PublicKey to Address.
No description provided by the author
No description provided by the author
Sha256DHashBytes hash data by sha256.
No description provided by the author
No description provided by the author
StringToBalance create balance from string.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
AddressLen represents the string length of a qlc address.
AddressPrefix is the prefix of qlc addresses.
AddressSize represents the binary size of a qlc address (a public key).
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
BalanceCompBigger bigger compare.
BalanceCompEqual equal compare.
BalanceCompSmaller smaller compare.
No description provided by the author
BalanceMaxPrecision balance max precision.
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
HashSize size of hash.
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
version bits scheme.
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
No description provided by the author
No description provided by the author
SeedSize size of the seed.
No description provided by the author
No description provided by the author
SignatureSize size of signature.
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
WorkSize work size.

# Variables

AddressEncoding is a base32 encoding using addressEncodingAlphabet as its alphabet.
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
ZeroAddress.
ZeroBalance zero.
ZeroBalance zero.
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
go:generate msgp.
No description provided by the author
Balance of account.
go:generate msgp.
No description provided by the author
No description provided by the author
go:generate msgp.
go:generate msgp.
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
go:generate msgp.
go:generate msgp.
go:generate msgp.
go:generate msgp.
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
No description provided by the author
Common Contract State, key value in trie for each contract key = contract address.
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
key = type + id + pubkey + sendBlockHash.
No description provided by the author
No description provided by the author
No description provided by the author
PovTransaction represents an state block metadata in the PoV block.
TxLookupEntry is a positional metadata to help looking up the data content of a transaction given only its hash.
key = address.
go:generate msgp.
go:generate msgp.
No description provided by the author
go:generate msgp.
go:generate msgp.
No description provided by the author
No description provided by the author
go:generate msgp.
go:generate msgp.
Worker PoW.

# Interfaces

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

# Type aliases

Address of accountgo:generate msgp.
BalanceComp compare.
go:generate msgpmsgp:shim BlockType as:string using:(BlockType).String/parseString.
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
Hash blake2b hashgo:generate msgp.
go:generate msgp.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PovTransactions is a PovTransaction slice type for basic sorting.
PovTxByHash implements the sort interface to allow sorting a list of transactions by their hash.
Seed of accountgo:generate msgp.
Signature of block.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Work PoW work.