modulepackage
0.0.0-20200330152553-74cd83e129ee
Repository: https://github.com/ngin-network/ngtype.git
Documentation: pkg.go.dev
# Functions
.
GetGenesisBlock will return a complete sealed GenesisBlock.
No description provided by the author
AccountID will receive an ID and PK then return a Account without SubState and Balance(0.
NewBareBlock will return an unsealing block and then you need to add ops and seal with the correct Nonce.
No description provided by the author
No description provided by the author
NewOpTrie receives ordered ops.
No description provided by the author
NewSheet gets the rows from db and return the sheet for transport/saving.
NewUnsignedOperation will return an Unsigned Operation, must using Signature().
No description provided by the author
TotalFee is a helper which helps calc the total fee among the ops.
# Constants
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
# 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
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
new(big.Int).Exp(big.NewInt(2), big.NewInt(256), big.NewInt(0)) // Target = MaxDiff / diff.
10NG.
Units.
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
OpBucket is an operation container with unfixed order, mainly for implementing queuing.
No description provided by the author
OpTrie is an fixed ordered operation container, mainly for pending OpTrie is an advanced type, aiming to get the trie root hash.
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author