Interface IBlockHeader
A common interface for blocks that have their proof-of-work Nonces and StateRootHashes, but no transactions.
Inherited Members
Namespace: Libplanet.Types.Blocks
Assembly: Libplanet.Types.dll
Syntax
public interface IBlockHeader : IPreEvaluationBlockHeader, IBlockMetadata, IBlockExcerpt
Properties
| Improve this Doc View SourceSignature
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<System.Collections.Immutable.ImmutableArray<System.Byte>> |
StateRootHash
The
Declaration
HashDigest<SHA256> StateRootHash { get; }
Property Value
Type | Description |
---|---|
HashDigest<SHA256> |