Show / Hide Table of Contents

Namespace Libplanet.Consensus

Classes

Proposal

Represents a Proposal from a validator for consensus. It contains an essential information ProposalMetadata to propose a block for a consensus in a height and a round, and its signature to verify. The signature is verified in constructor, so the instance of Proposal should be valid.

ProposalMetadata

A class for constructing Proposal. This class contains proposal information in consensus of a height and a round. Use Sign(PrivateKey) to create a Proposal.

Validator

A class designed for a langword_csharp_Validator of consensus. A Validator consists of operator's PublicKey and its corresponding langword_csharp_Power.

ValidatorSet

A wrapper class for a List<T> of Validators. This standardizes the ordering of validators by Address.

Vote

Represents a Vote from a validator for consensus.

VoteMetadata

Represents a vote metadata from a validator for consensus.

Interfaces

IVoteMetadata

A common langword_csharp_interface for Votes and VoteMetadatas.

Enums

VoteFlag

A State about Vote.

In This Article
Back to top Copyright © 2018–2023 Planetarium