package
0.1.2
Repository: https://github.com/qwslane/go-quai.git
Documentation: pkg.go.dev

# Packages

Package bitutil implements fast bitwise operations.
No description provided by the author
No description provided by the author
Package hexutil implements hex encoding with 0x prefix.
Package math provides integer math utilities.
Package mclock is a wrapper for a monotonic clock source.
Package prque implements a priority queue data structure supporting arbitrary value types and int64 priorities.

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
BigToAddress returns Address with byte values of b.
BigToHash sets byte representation of b to hash.
No description provided by the author
No description provided by the author
Bytes2Hex returns the hexadecimal encoding of d.
BytesToAddress returns Address with value b.
BytesToHash sets b to hash.
No description provided by the author
CopyBytes returns an exact copy of the provided bytes.
No description provided by the author
FromHex returns the bytes represented by the hexadecimal string s.
GenerateLocations generates a logical sequence of locations.
GetHierarchySizeForExpansionNumber calculates the number of regions and zones for a given expansion number.
Hex2Bytes returns the bytes represented by the hexadecimal string str.
Hex2BytesFixed returns bytes of a specified fixed length flen.
HexToAddress returns Address with byte values of s.
No description provided by the author
HexToHash sets byte representation of s to hash.
No description provided by the author
IsHexAddress verifies whether a string can represent a valid hex-encoded Quai address or not.
No description provided by the author
LeftPadBytes zero-pads slice to the left up to length l.
Implements the shard topology defined in QIP2.
LocationFromName parses a location name and returns a Location.
IntrinsicLogEntropy returns the logarithm of the intrinsic entropy reduction of a PoW hash.
No description provided by the author
No description provided by the author
No description provided by the author
NewChainsAdded returns the new chains added on the given expansion number.
NewLocation verifies the inputs for region and zone and returns a valid location.
NewMixedcaseAddress constructor (mainly for testing).
NewMixedcaseAddressFromString is mainly meant for unit-testing.
No description provided by the author
OneInternal returns an address starting with the byte prefix and ending in 1.
No description provided by the author
Reads the message from the stream and returns a byte of data.
RightPadBytes zero-pads slice to the right up to length l.
Continously verify that the common values have not been overwritten.
SetBlockHashForQuai sets the correct first 4 bytes in the block hash for QIP10 and Qi origin.
SetBlockHashForQuai sets the correct first 4 bytes in the block hash for QIP10 and Quai origin.
TrimLeftZeroes returns a subslice of s without leading zeroes.
TrimRightZeroes returns a subslice of s without trailing zeroes.
Writes the message to the stream.
No description provided by the author
No description provided by the author

# Constants

AddressLength is the expected length of the address.
HashLength is the expected length of the hash.
Depth of the tree, i.e.
Lengths of hashes and addresses in bytes.
No description provided by the author
Lengths of hashes and addresses in bytes.
Lengths of hashes and addresses in bytes.
Lengths of hashes and addresses in bytes.
Lengths of hashes and addresses in bytes.
Constants to mnemonically index into context arrays.
Lengths of hashes and addresses in bytes.
Lengths of hashes and addresses in bytes.

# Variables

Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
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
For utility purposes only.
The zero address (0x0).

# Structs

No description provided by the author
MixedcaseAddress retains the original string, which may or may not be correctly checksummed.
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

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
Hash represents the 32 byte Keccak256 hash of arbitrary data.
Hashes is a slice of Hash.
No description provided by the author
Location of a chain within the Quai hierarchy Location is encoded as a path from the root of the tree to the specified chain.
PrettyAge is a pretty printed version of a time.Duration value that rounds the values up to a single most significant unit, days/weeks/years included.
PrettyDuration is a pretty printed version of a time.Duration value that cuts the unnecessary precision off from the formatted textual representation.
StorageSize is a wrapper around a float value that supports user friendly formatting.
UnprefixedAddress allows marshaling an Address without 0x prefix.
UnprefixedHash allows marshaling a Hash without 0x prefix.