Interface IBlockHeader
A common interface for blocks that have 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 SignatureProtocolVersion, it is null for blocks with earlier protocol versions than SignatureProtocolVersion. Although the property is type-wise, the block signature is mandatory since SignatureProtocolVersion.
Declaration
ImmutableArray<byte>? Signature { get; }
Property Value
Type | Description |
---|---|
System.Nullable<ImmutableArray<System.Byte>> |
StateRootHash
The
Declaration
HashDigest<SHA256> StateRootHash { get; }
Property Value
Type | Description |
---|---|
HashDigest<SHA256> |