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
-
IMessage<AuthorizationsV0>IDeepCloneable<AuthorizationsV0>IBufferMessageIMessage
- 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
AddIdentityProviderFieldNumber
Field number for the "add_identity_provider" field.
public const int AddIdentityProviderFieldNumber = 13
Field Value
EmergencyFieldNumber
Field number for the "emergency" field.
public const int EmergencyFieldNumber = 2
Field Value
KeysFieldNumber
Field number for the "keys" field.
public const int KeysFieldNumber = 1
Field Value
ParameterConsensusFieldNumber
Field number for the "parameter_consensus" field.
public const int ParameterConsensusFieldNumber = 4
Field Value
ParameterEuroPerEnergyFieldNumber
Field number for the "parameter_euro_per_energy" field.
public const int ParameterEuroPerEnergyFieldNumber = 5
Field Value
ParameterFoundationAccountFieldNumber
Field number for the "parameter_foundation_account" field.
public const int ParameterFoundationAccountFieldNumber = 7
Field Value
ParameterGasRewardsFieldNumber
Field number for the "parameter_gas_rewards" field.
public const int ParameterGasRewardsFieldNumber = 10
Field Value
ParameterMicroCCDPerEuroFieldNumber
Field number for the "parameter_micro_CCD_per_euro" field.
public const int ParameterMicroCCDPerEuroFieldNumber = 6
Field Value
ParameterMintDistributionFieldNumber
Field number for the "parameter_mint_distribution" field.
public const int ParameterMintDistributionFieldNumber = 8
Field Value
ParameterTransactionFeeDistributionFieldNumber
Field number for the "parameter_transaction_fee_distribution" field.
public const int ParameterTransactionFeeDistributionFieldNumber = 9
Field Value
PoolParametersFieldNumber
Field number for the "pool_parameters" field.
public const int PoolParametersFieldNumber = 11
Field Value
ProtocolFieldNumber
Field number for the "protocol" field.
public const int ProtocolFieldNumber = 3
Field Value
Properties
AddAnonymityRevoker
Access structure for adding new anonymity revokers.
public AccessStructure AddAnonymityRevoker { get; set; }
Property Value
AddIdentityProvider
Access structure for adding new identity providers.
public AccessStructure AddIdentityProvider { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Emergency
New emergency keys.
public AccessStructure Emergency { get; set; }
Property Value
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
ParameterEuroPerEnergy
Access structure for updating the euro per energy.
public AccessStructure ParameterEuroPerEnergy { get; set; }
Property Value
ParameterFoundationAccount
Access structure for updating the foundation account.
public AccessStructure ParameterFoundationAccount { get; set; }
Property Value
ParameterGasRewards
Access structure for updating the gas rewards.
public AccessStructure ParameterGasRewards { get; set; }
Property Value
ParameterMicroCCDPerEuro
Access structure for updating the micro CCD per euro.
public AccessStructure ParameterMicroCCDPerEuro { get; set; }
Property Value
ParameterMintDistribution
Access structure for updating the mint distribution.
public AccessStructure ParameterMintDistribution { get; set; }
Property Value
ParameterTransactionFeeDistribution
Access structure for updating the transaction fee distribution.
public AccessStructure ParameterTransactionFeeDistribution { get; set; }
Property Value
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
Protocol
New protocol update keys.
public AccessStructure Protocol { get; set; }
Property Value
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
AuthorizationsV0An object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
other
object
Returns
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
CodedOutputStreamCoded output stream to write the data to. Must not be null.