Show / Hide Table of Contents

Interface IPreEvaluationBlockHeader

A common interface for blocks that have their proof-of-work Nonces, but are not evaluated yet (i.e., state root hash is not yet determined).

Inherited Members
IBlockMetadata.ProtocolVersion
IBlockMetadata.Index
IBlockMetadata.Timestamp
IBlockMetadata.Miner
IBlockMetadata.PublicKey
IBlockMetadata.Difficulty
IBlockMetadata.TotalDifficulty
IBlockMetadata.PreviousHash
IBlockMetadata.TxHash
Namespace: Libplanet.Blocks
Assembly: Libplanet.dll
Syntax
public interface IPreEvaluationBlockHeader : IBlockMetadata

Properties

| Improve this Doc View Source

HashAlgorithm

The hash algorithm used for calculating PreEvaluationHash.

Declaration
HashAlgorithmType HashAlgorithm { get; }
Property Value
Type Description
HashAlgorithmType
| Improve this Doc View Source

Nonce

The proof-of-work nonce which satisfies the required Difficulty.

Declaration
Nonce Nonce { get; }
Property Value
Type Description
Nonce
| Improve this Doc View Source

PreEvaluationHash

The hash derived from the block except of its state root hash (i.e., without action evaluation). Used for validating Nonce.

Declaration
ImmutableArray<byte> PreEvaluationHash { get; }
Property Value
Type Description
ImmutableArray<Byte>
See Also
Nonce

Extension Methods

BlockMetadataExtensions.Copy(IBlockMetadata)
BlockMetadataExtensions.ValidateTimestamp(IBlockMetadata)
BlockMetadataExtensions.ValidateTimestamp(IBlockMetadata, DateTimeOffset)
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2021 Planetarium