Table of Contents

Class AuthorizationsV0

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

The set of keys authorized for chain updates, together with access structures determining which keys are authorized for which update types. This is the payload of an update to authorization.

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

Constructors

AuthorizationsV0()

public AuthorizationsV0()

AuthorizationsV0(AuthorizationsV0)

public AuthorizationsV0(AuthorizationsV0 other)

Parameters

other AuthorizationsV0

Fields

AddAnonymityRevokerFieldNumber

Field number for the "add_anonymity_revoker" field.

public const int AddAnonymityRevokerFieldNumber = 12

Field Value

int

AddIdentityProviderFieldNumber

Field number for the "add_identity_provider" field.

public const int AddIdentityProviderFieldNumber = 13

Field Value

int

EmergencyFieldNumber

Field number for the "emergency" field.

public const int EmergencyFieldNumber = 2

Field Value

int

KeysFieldNumber

Field number for the "keys" field.

public const int KeysFieldNumber = 1

Field Value

int

ParameterConsensusFieldNumber

Field number for the "parameter_consensus" field.

public const int ParameterConsensusFieldNumber = 4

Field Value

int

ParameterEuroPerEnergyFieldNumber

Field number for the "parameter_euro_per_energy" field.

public const int ParameterEuroPerEnergyFieldNumber = 5

Field Value

int

ParameterFoundationAccountFieldNumber

Field number for the "parameter_foundation_account" field.

public const int ParameterFoundationAccountFieldNumber = 7

Field Value

int

ParameterGasRewardsFieldNumber

Field number for the "parameter_gas_rewards" field.

public const int ParameterGasRewardsFieldNumber = 10

Field Value

int

ParameterMicroCCDPerEuroFieldNumber

Field number for the "parameter_micro_CCD_per_euro" field.

public const int ParameterMicroCCDPerEuroFieldNumber = 6

Field Value

int

ParameterMintDistributionFieldNumber

Field number for the "parameter_mint_distribution" field.

public const int ParameterMintDistributionFieldNumber = 8

Field Value

int

ParameterTransactionFeeDistributionFieldNumber

Field number for the "parameter_transaction_fee_distribution" field.

public const int ParameterTransactionFeeDistributionFieldNumber = 9

Field Value

int

PoolParametersFieldNumber

Field number for the "pool_parameters" field.

public const int PoolParametersFieldNumber = 11

Field Value

int

ProtocolFieldNumber

Field number for the "protocol" field.

public const int ProtocolFieldNumber = 3

Field Value

int

Properties

AddAnonymityRevoker

Access structure for adding new anonymity revokers.

public AccessStructure AddAnonymityRevoker { get; set; }

Property Value

AccessStructure

AddIdentityProvider

Access structure for adding new identity providers.

public AccessStructure AddIdentityProvider { get; set; }

Property Value

AccessStructure

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

Emergency

New emergency keys.

public AccessStructure Emergency { get; set; }

Property Value

AccessStructure

Keys

The set of keys authorized for chain updates.

public RepeatedField<UpdatePublicKey> Keys { get; }

Property Value

RepeatedField<UpdatePublicKey>

ParameterConsensus

Access structure for updating the consensus parameters. Previously, this was the election difficulty.

public AccessStructure ParameterConsensus { get; set; }

Property Value

AccessStructure

ParameterEuroPerEnergy

Access structure for updating the euro per energy.

public AccessStructure ParameterEuroPerEnergy { get; set; }

Property Value

AccessStructure

ParameterFoundationAccount

Access structure for updating the foundation account.

public AccessStructure ParameterFoundationAccount { get; set; }

Property Value

AccessStructure

ParameterGasRewards

Access structure for updating the gas rewards.

public AccessStructure ParameterGasRewards { get; set; }

Property Value

AccessStructure

ParameterMicroCCDPerEuro

Access structure for updating the micro CCD per euro.

public AccessStructure ParameterMicroCCDPerEuro { get; set; }

Property Value

AccessStructure

ParameterMintDistribution

Access structure for updating the mint distribution.

public AccessStructure ParameterMintDistribution { get; set; }

Property Value

AccessStructure

ParameterTransactionFeeDistribution

Access structure for updating the transaction fee distribution.

public AccessStructure ParameterTransactionFeeDistribution { get; set; }

Property Value

AccessStructure

Parser

public static MessageParser<AuthorizationsV0> Parser { get; }

Property Value

MessageParser<AuthorizationsV0>

PoolParameters

Access structure for updating the pool parameters. For V0 this is only the baker stake threshold, for V1 there are more.

public AccessStructure PoolParameters { get; set; }

Property Value

AccessStructure

Protocol

New protocol update keys.

public AccessStructure Protocol { get; set; }

Property Value

AccessStructure

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 AuthorizationsV0 Clone()

Returns

AuthorizationsV0

A deep clone of this object.

Equals(AuthorizationsV0)

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

public bool Equals(AuthorizationsV0 other)

Parameters

other AuthorizationsV0

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(AuthorizationsV0)

Merges the given message into this one.

public void MergeFrom(AuthorizationsV0 other)

Parameters

other AuthorizationsV0

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.