Table of Contents

Class QuorumCertificate

Namespace
Concordium.Grpc.V2
Assembly
Concordium.Sdk.dll

A quorum certificate is the certificate that the finalization comittee issues in order to certify a block. A block must be certified before it will be part of the authorative part of the chain.

public sealed class QuorumCertificate : IMessage<QuorumCertificate>, IEquatable<QuorumCertificate>, IDeepCloneable<QuorumCertificate>, IBufferMessage, IMessage
Inheritance
QuorumCertificate
Implements
IDeepCloneable<QuorumCertificate>
IBufferMessage
IMessage
Inherited Members

Constructors

QuorumCertificate()

public QuorumCertificate()

QuorumCertificate(QuorumCertificate)

public QuorumCertificate(QuorumCertificate other)

Parameters

other QuorumCertificate

Fields

AggregateSignatureFieldNumber

Field number for the "aggregate_signature" field.

public const int AggregateSignatureFieldNumber = 4

Field Value

int

BlockHashFieldNumber

Field number for the "block_hash" field.

public const int BlockHashFieldNumber = 1

Field Value

int

EpochFieldNumber

Field number for the "epoch" field.

public const int EpochFieldNumber = 3

Field Value

int

RoundFieldNumber

Field number for the "round" field.

public const int RoundFieldNumber = 2

Field Value

int

SignatoriesFieldNumber

Field number for the "signatories" field.

public const int SignatoriesFieldNumber = 5

Field Value

int

Properties

AggregateSignature

The aggregated signature by the finalization committee on the block.

public QuorumSignature AggregateSignature { get; set; }

Property Value

QuorumSignature

BlockHash

The hash of the block that the quorum certificate refers to.

public BlockHash BlockHash { get; set; }

Property Value

BlockHash

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

Epoch

The epoch of the block.

public Epoch Epoch { get; set; }

Property Value

Epoch

Parser

public static MessageParser<QuorumCertificate> Parser { get; }

Property Value

MessageParser<QuorumCertificate>

Round

The round of the block.

public Round Round { get; set; }

Property Value

Round

Signatories

A list of the finalizers that formed the quorum certificate i.e., the ones who have contributed to the 'aggregate_siganture'. The finalizers are identified by their baker id as this is stable across protocols and epochs.

public RepeatedField<BakerId> Signatories { get; }

Property Value

RepeatedField<BakerId>

Methods

CalculateSize()

Calculates the size of this message in Protocol Buffer wire format, in bytes.

public int CalculateSize()

Returns

int

The number of bytes required to write this message to a coded output stream.

Clone()

Creates a deep clone of this object.

public QuorumCertificate Clone()

Returns

QuorumCertificate

A deep clone of this object.

Equals(QuorumCertificate)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(QuorumCertificate other)

Parameters

other QuorumCertificate

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object other)

Parameters

other object

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

MergeFrom(QuorumCertificate)

Merges the given message into this one.

public void MergeFrom(QuorumCertificate other)

Parameters

other QuorumCertificate

Remarks

See the user guide for precise merge semantics.

MergeFrom(CodedInputStream)

Merges the data from the specified coded input stream with the current message.

public void MergeFrom(CodedInputStream input)

Parameters

input CodedInputStream

Remarks

See the user guide for precise merge semantics.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

WriteTo(CodedOutputStream)

Writes the data to the given coded output stream.

public void WriteTo(CodedOutputStream output)

Parameters

output CodedOutputStream

Coded output stream to write the data to. Must not be null.