# README
go-common
# Packages
Package abi implements the Ethereum ABI (Application Binary Interface).
No description provided by the author
Package hexutil implements hex encoding with 0x prefix.
No description provided by the author
Package math provides integer math utilities.
Package rlp implements the RLP serialization format.
No description provided by the author
# Functions
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.
Bytes2Hex returns the hexadecimal encoding of d.
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
BytesToAddress returns Address with value b.
No description provided by the author
No description provided by the author
BytesToHash sets b to 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
No description provided by the author
No description provided by the author
No description provided by the author
Join the slice array of the parameter to return a slice.
CopyBytes returns an exact copy of the provided bytes.
No description provided by the author
No description provided by the author
CreateAddress creates an ethereum address given the bytes and the nonce.
No description provided by the author
No description provided by the author
No description provided by the author
Hash calculation after serializing objects.
Call the HashObject method and turn the result into a hash object.
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
FromHex returns the bytes represented by the hexadecimal string s.
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
hasHexPrefix validates str begins with '0x' or '0X'.
No description provided by the author
If the object implements common.Hasher Interface, the HashValue() method is directly used to generate the hash value.
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
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.
HexToHash sets byte representation of s to 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
IsHex validates whether each byte is valid hexadecimal string.
IsHexAddress verifies whether a string can represent a valid hex-encoded Ethereum address or not.
isHexCharacter returns bool of c being a valid hexadecimal.
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.
depth: If it is a positive number, it is the depth of the specified merkle tree.
No description provided by the author
MerkleHash Calculate merkle tree root hash with hashlist parameter according to fixed algorithm.
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
When sorting a pointer type object slice, the Less method needs to be written.
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
RightPadBytes zero-pads slice to the right up to length l.
let b0.bit(0~7) and b1.bit(0~7) be bit(0~15), and returns bit(shifts, shifts+length) 0 <= shifts <= 7; 1<= length <= 8 default:8 ShiftBytes(0xf0, 0xf, 3, 7) would be 0x7e ShiftBytes(0xf0, 0xf, 3) would be 0xfe.
No description provided by the author
No description provided by the author
No description provided by the author
Divide bs into slices according to size, and each slice length is size.
No description provided by the author
No description provided by the author
String to ElectionType, invalid string bool returns false.
cut bytes from bs, bits [from, to).
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
Monitor the event occurrence time.
Monitoring Delta.
monitoring the height.
# Constants
No description provided by the author
This chain and descendant chain do not charge gas fee, can be covered by descendant chain attribute.
Support algorithm of Proof of Capacity.
Reward chain, there can only be one.
network type.
No description provided by the author
No description provided by the author
Only in the sub chain layer, including all data nodes of the sub chain and its shards.
chain id.
0: origin 1: add Version/Auditors.
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
default configuration.
No description provided by the author
No description provided by the author
Deprecated.
Deprecated.
ETManagedCommittee: 1.
ETManagedCommittee: 1.
ETManagedCommittee: 1.
No description provided by the author
No description provided by the author
height.
No description provided by the author
upper limit of shards:<= 2^MaxExponentOfShards.
No description provided by the author
ETManagedCommittee: 1.
No description provided by the author
ETManagedCommittee: 1.
ETManagedCommittee: 1.
ETManagedCommittee: 1.
length of types.
No description provided by the author
No description provided by the author
event type of monitoring.
chain id related.
chain mode.
Only in the main chain layer, including all data nodes of the main chain and its sub chains.
No description provided by the author
No description provided by the author
state of system services.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
base chainid for ethereum compatible.
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
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
The height of the last block processed by each chain.
Timestamp of the last Block time.
Timestamp of the last consensus event processed.
Timestamp of the last P2P message in the system.
No description provided by the author
No description provided by the author
range of system network delay [NetDelay[0]-NetDelay[1]].
No description provided by the author
No description provided by the author
delta pool overflowed?.
Record the last block that each chain has been packaged by main chain.
if startup in standalone mode (one chain mode).
No description provided by the author
NodeID of current node, which is initialized from the configuration file when the system starts.
No description provided by the author
No description provided by the author
TypeOfChainStructPtr = reflect.TypeOf((*ChainStruct)(nil)).
No description provided by the author
Waiting time for consensus state switching, waiting for other nodes.
# Structs
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
Since 16 bit counting is used in serialization, the maximum supported proof height cannot exceed 65535.
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
No description provided by the author
Interface type that can calculate hash values.
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
# Type aliases
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
GasPool tracks the amount of gas available during execution of the transactions in a 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
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