Show / Hide Table of Contents

Interface IBlockHeader

A common interface for blocks that have their proof-of-work Nonces and StateRootHashes, but no transactions.

Inherited Members
IPreEvaluationBlockHeader.PreEvaluationHash
IBlockMetadata.ProtocolVersion
IBlockMetadata.Index
IBlockMetadata.Timestamp
IBlockMetadata.Miner
IBlockMetadata.PublicKey
IBlockMetadata.PreviousHash
IBlockMetadata.TxHash
IBlockMetadata.LastCommit
IBlockExcerpt.Hash
Namespace: Libplanet.Types.Blocks
Assembly: Libplanet.Types.dll
Syntax
public interface IBlockHeader : IPreEvaluationBlockHeader, IBlockMetadata, IBlockExcerpt

Properties

| Improve this Doc View Source

Signature

The digital signature of the whole block content (except for Hash, which is derived from the signature and other contents). This is made by the Miner's PrivateKey.

As the block signature is introduced since the protocol version 2, it is null for blocks with earlier protocol versions than 2. Although the property is type-wise, the block signature is mandatory since the protocol version 2.

Declaration
ImmutableArray<byte>? Signature { get; }
Property Value
Type Description
Nullable<ImmutableArray<Byte>>
| Improve this Doc View Source

StateRootHash

The of the resulting states after evaluating transactions and a (if exists).

Declaration
HashDigest<SHA256> StateRootHash { get; }
Property Value
Type Description
HashDigest<SHA256>

Extension Methods

BlockExcerptExtensions.ExcerptEquals(IBlockExcerpt, IBlockExcerpt)
BlockExcerptExtensions.ToExcerptString(IBlockExcerpt)
BlockMarshaler.MarshalBlockHeader(IBlockHeader)
IBlockMetadataExtensions.ValidateTimestamp(IBlockMetadata)
IBlockMetadataExtensions.ValidateTimestamp(IBlockMetadata, DateTimeOffset)
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium