Class AccessStructure
- Namespace
- Concordium.Grpc.V2
- Assembly
- Concordium.Sdk.dll
An access structure which specifies which UpdatePublicKeys in a HigherLevelKeys that are allowed to make chain update of a specific type. The threshold defines the minimum number of allowed keys needed to make the actual update.
public sealed class AccessStructure : IMessage<AccessStructure>, IEquatable<AccessStructure>, IDeepCloneable<AccessStructure>, IBufferMessage, IMessage
- Inheritance
-
AccessStructure
- Implements
-
IMessage<AccessStructure>IDeepCloneable<AccessStructure>IBufferMessageIMessage
- Inherited Members
Constructors
AccessStructure()
public AccessStructure()
AccessStructure(AccessStructure)
public AccessStructure(AccessStructure other)
Parameters
other
AccessStructure
Fields
AccessPublicKeysFieldNumber
Field number for the "access_public_keys" field.
public const int AccessPublicKeysFieldNumber = 1
Field Value
AccessThresholdFieldNumber
Field number for the "access_threshold" field.
public const int AccessThresholdFieldNumber = 2
Field Value
Properties
AccessPublicKeys
Unique indexes into the set of keys in AuthorizationV0.
public RepeatedField<UpdateKeysIndex> AccessPublicKeys { get; }
Property Value
- RepeatedField<UpdateKeysIndex>
AccessThreshold
Number of keys requred to authorize an update.
public UpdateKeysThreshold AccessThreshold { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Parser
public static MessageParser<AccessStructure> Parser { get; }
Property Value
- MessageParser<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 AccessStructure Clone()
Returns
- AccessStructure
A deep clone of this object.
Equals(AccessStructure)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(AccessStructure other)
Parameters
other
AccessStructureAn 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(AccessStructure)
Merges the given message into this one.
public void MergeFrom(AccessStructure other)
Parameters
other
AccessStructure
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.