package
0.0.0-20190512144547-bd70fc9e237a
Repository: https://github.com/azd1997/golang-mimblewimble-try.git
Documentation: pkg.go.dev

# Functions

反序列化.
No description provided by the author
创建新的工作量证明对象*/.
No description provided by the author

# Constants

No description provided by the author
BlockHashSize size of block hash.
Weight of an input when counted against the max block weigth capacity.
Weight of a kernel when counted against the max block weight capacity.
Weight of an output when counted against the max block weight capacity.
BlockTimeSec Block interval, in seconds, the network will tune its next_target for.
Average time span of the difficulty adjustment window.
No description provided by the author
Full archival node, has the whole history without any pruning.
No description provided by the author
Can provide a list of healthy peers.
We don't know (yet) what the peer can do.
Can provide block headers and the UTXO set for some recent-enough height.
Kernel matching a coinbase output.
CoinbaseMaturity Number of blocks before a coinbase matures and can be spent.
Output is a coinbase output, must not be spent until maturity.
Default number of blocks in the past when cross-block cut-through will start happening.
No flags.
DefaultMinEdgeBits is the default Cuckatoo Cycle size used for mining and validating.
No flags.
No description provided by the author
Number of blocks used to calculate difficulty adjustments.
Easiness Default Cuckoo Cycle easiness, high enough to have good likeliness to find a solution.
GrinBase A grin is divisible to 10^9, following the SI prefixes.
Fork every 250,000 blocks for first 2 years, simple number and just a little less than 6 months.
The block height at which version 2 blocks are valid.
size in bytes of a message header.
Minimum size time window used for difficulty adjustments.
MaxBlockCoinbaseKernels number of max coinbase kernels in a valid block.
MaxBlockCoinbaseOutputs number of max coinbase outputs in a valid block.
Maximum number of block headers a peer should ever send.
Total maximum block weight.
Maximum number of hashes in a block header locator request.
MaxMsgLen is the maximum size we're willing to accept for any message.
Maximum number of peer addresses a peer should ever send.
Index at half the desired median.
Time window in blocks to calculate block time median.
Microgrin, a thousand of a milligrin.
Milligrin, a thousand of a grin.
The minimum mining difficulty we'll allow.
Types of p2p messages.
Types of p2p messages.
Types of p2p messages.
Types of p2p messages.
Types of p2p messages.
Types of p2p messages.
Types of p2p messages.
Types of p2p messages.
Types of p2p messages.
Types of p2p messages.
Types of p2p messages.
Types of p2p messages.
Types of p2p messages.
Types of p2p messages.
Types of p2p messages.
Types of p2p messages.
Types of p2p messages.
Types of p2p messages.
Types of p2p messages.
Types of p2p messages.
Types of p2p messages.
Nanogrin, smallest unit, takes a billion to make a grin.
Network error codes.
ProofSize Cuckoo-cycle proof size (cycle length).
protocolVersion version of grin p2p protocol.
Reward The block subsidy amount.
Secondary proof-of-work size, meant to be ASIC resistant.
The size of a short id used to identify inputs|outputs|kernels (6 bytes).
Maximum size time window used for difficulty adjustments.
No description provided by the author

# Variables

No description provided by the author
MagicCode is expected in the header of every message.
MAXTarget The target is the 32-bytes hash block hashes must be lower than.

# Structs

区块结构体.
区块头定义.
No description provided by the author
一笔交易的输出部分,定义一笔钱的新归属。对于输出而言,其承诺Commit为一盲值r, (佩德森承诺:x = rG+vH)RangeProof.
RangeProof of work.
No description provided by the author
Transaction an grin transaction.
A proof that a transaction sums to zero.

# Interfaces

Message defines methods for WriteMessage/ReadMessage functions.
Protocol defines grin-node network communicates.

# Type aliases

No description provided by the author
Capabilities of node.
Difficulty is defined as the maximum target divided by the block hash.
Hash is hashes (block hash, commitments and so on).
排好序的inputList.
KernelFeatures is options for a kernel's structure or use.
OutputFeatures is options for block validation.
No description provided by the author
No description provided by the author
ShortIDList sortable list of shortID.
SwitchCommitHash the switch commitment hash.
TxKernelList sortable list of kernels.