Class RootUpdate
- Namespace
- Concordium.Grpc.V2
- Assembly
- Concordium.Sdk.dll
Root updates are the highest kind of key updates. They can update every other set of keys, even themselves. They can only be performed by Root level keys.
public sealed class RootUpdate : IMessage<RootUpdate>, IEquatable<RootUpdate>, IDeepCloneable<RootUpdate>, IBufferMessage, IMessage
- Inheritance
-
RootUpdate
- Implements
-
IMessage<RootUpdate>IDeepCloneable<RootUpdate>IBufferMessageIMessage
- Inherited Members
Constructors
RootUpdate()
public RootUpdate()
RootUpdate(RootUpdate)
public RootUpdate(RootUpdate other)
Parameters
other
RootUpdate
Fields
Level1KeysUpdateFieldNumber
Field number for the "level_1_keys_update" field.
public const int Level1KeysUpdateFieldNumber = 2
Field Value
Level2KeysUpdateV0FieldNumber
Field number for the "level_2_keys_update_v0" field.
public const int Level2KeysUpdateV0FieldNumber = 3
Field Value
Level2KeysUpdateV1FieldNumber
Field number for the "level_2_keys_update_v1" field.
public const int Level2KeysUpdateV1FieldNumber = 4
Field Value
RootKeysUpdateFieldNumber
Field number for the "root_keys_update" field.
public const int RootKeysUpdateFieldNumber = 1
Field Value
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Level1KeysUpdate
The level 1 keys were updated.
public HigherLevelKeys Level1KeysUpdate { get; set; }
Property Value
Level2KeysUpdateV0
The level 2 keys were updated.
public AuthorizationsV0 Level2KeysUpdateV0 { get; set; }
Property Value
Level2KeysUpdateV1
The level 2 keys were updated. This is similar to level_2_keys_update_v0
except that a few more keys can be updated.
public AuthorizationsV1 Level2KeysUpdateV1 { get; set; }
Property Value
Parser
public static MessageParser<RootUpdate> Parser { get; }
Property Value
- MessageParser<RootUpdate>
RootKeysUpdate
The root keys were updated.
public HigherLevelKeys RootKeysUpdate { get; set; }
Property Value
UpdateTypeCase
public RootUpdate.UpdateTypeOneofCase UpdateTypeCase { get; }
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.
ClearUpdateType()
public void ClearUpdateType()
Clone()
Creates a deep clone of this object.
public RootUpdate Clone()
Returns
- RootUpdate
A deep clone of this object.
Equals(RootUpdate)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(RootUpdate other)
Parameters
other
RootUpdateAn 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(RootUpdate)
Merges the given message into this one.
public void MergeFrom(RootUpdate other)
Parameters
other
RootUpdate
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.