package
0.0.7
Repository: https://github.com/meterio/supernova.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
BytesToBytes32 converts bytes slice into Bytes32.
GetForkConfig get fork config for given genesis ID.
LoadNodeKey loads NodeKey located in filePath.
LoadOrGenNodeKey attempts to load the NodeKey from the given filePath.
MakeName creates a node name that follows the ethereum convention for such names.
MakePoWTarget returns the big-endian encoding of 2^(targetBits - difficulty) - 1.
MustParseBytes32 convert string presented into Bytes32 type, panic on error.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewNetAddress returns a new NetAddress using the provided TCP address.
NewNetAddressIPPort returns a new NetAddress using the provided IP and port number.
ParseBytes32 convert string presented into Bytes32 type.
No description provided by the author
PubKeyToID returns the ID corresponding to the given PubKey.
Sizeof Function Will Find Approximate Size of Object in Bytes.

# Constants

21000.
time interval between two consecutive blocks.
Gas needed for an elliptic curve addition.
Base price for an elliptic curve pairing check.
Per-point price for an elliptic curve pairing check.
Gas needed for an elliptic curve scalar multiplication.
Maximum depth of call/create stack.
Once per CALL operation & message call transaction.
Paid for CALL when the destination address didn't exist prior.
Free gas given at beginning of call.
Paid for CALL when the value transfer is non-zero.
.
Once per CREATE2 operation.
.
Once per CREATE operation & contract-creation transaction.
Elliptic curve sender recovery gas price.
Duration between proof-of-work epochs.
Times ceil(log256(exponent)) for the EXP instruction.
Once per EXP instruction.
IDByteLength is the length of a crypto.Address.
Base price for a data copy operation.
Per-work price for a data copy operation.
Once per word of the init code when creating a contract.
Once per JUMPDEST operation.
Once per KECCAK256 operation.
Once per word of the KECCAK256 operation's data.
Per byte in a LOG* operation's data.
Per LOG* operation.
Multiplied by the * of the LOG*, per LOG transaction.
Maximum bytecode to permit for a contract.
Maximum size extra data may be after Genesis.
Maximum initcode to permit in a creation transaction and create instructions.
No description provided by the author
Times the address of the (highest referenced byte in memory + 1).
Divisor for the quadratic particle of the big int modular exponentiation.
--------------------- Epoch --------------------------.
Constants of block chain.
Constants of block chain.
Once per SSTORE operation from clean non-zero.
Once per SSTORE operation for clearing an originally existing storage slot.
Once per SSTORE operation from dirty.
Once per SSTORE operation from clean zero.
Once per SSTORE operation if the value doesn't change.
Once per SSTORE operation for resetting to the original zero value.
Once per SSTORE operation for resetting to the original non-zero value.
Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added.
Once per SSTORE operation if the zeroness changes from zero.
Once per SLOAD operation.
Per transaction not creating a contract.
Per transaction that creates a contract.
Divisor for the quadratic particle of the memory cost equation.
Base price for a RIPEMD160 operation.
Per-word price for a RIPEMD160 operation.
Base price for a SHA256 operation.
Per-word price for a SHA256 operation.
Once per SHA3 operation.
Once per word of the SHA3 operation's data.
EIP158 gas table.
Once per SSTORE operation if the zeroness doesn't change.
Once per SSTORE operation if the zeroness changes to zero.
Constants of block chain.
Constants of block chain.
Maximum size of VM stack allowed.
Refunded following a suicide operation.
Once per operation, for a selection of them.
Per byte of data attached to a transaction that is not equal to zero.
Per byte of non zero data attached to a transaction after EIP 2028 (part in Istanbul).
Per byte of data attached to a transaction that equals zero.
Constants of block chain.
WARM_STORAGE_READ_COST.

# Variables

The bound divisor of the difficulty, used in the update calculations.
The decision boundary on the blocktime duration used to determine whether difficulty should go up or not.
Difficulty of the Genesis block.
Keys.
The minimum that the difficulty may ever be.
NoFork a special config without any forks.
No description provided by the author
Keys of governance params.

# Structs

No description provided by the author
ForkConfig config for a fork.
No description provided by the author
NetAddress defines information about a peer on the network including its ID, IP address, and port.
NodeKey is the persistent peer key.
definition for TimeoutCert.
No description provided by the author

# Type aliases

No description provided by the author
crypto.PubKey type PubKey interface { Address() Address Bytes() []byte VerifySignature(msg []byte, sig []byte) bool Equals(other PubKey) bool Type() string } */.
Bytes32 array of 32 bytes.
ID is a hex-encoded crypto.Address.
PrettyDuration is a pretty printed version of a time.Duration value that cuts the unnecessary precision off from the formatted textual representation.
Transactions a slice of transactions.