Table of Contents

Class CredentialCommitments

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

Commitments that are part of a normal credential.

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

Constructors

CredentialCommitments()

public CredentialCommitments()

CredentialCommitments(CredentialCommitments)

public CredentialCommitments(CredentialCommitments other)

Parameters

other CredentialCommitments

Fields

AttributesFieldNumber

Field number for the "attributes" field.

public const int AttributesFieldNumber = 4

Field Value

int

CredCounterFieldNumber

Field number for the "cred_counter" field.

public const int CredCounterFieldNumber = 2

Field Value

int

IdCredSecSharingCoeffFieldNumber

Field number for the "id_cred_sec_sharing_coeff" field.

public const int IdCredSecSharingCoeffFieldNumber = 5

Field Value

int

MaxAccountsFieldNumber

Field number for the "max_accounts" field.

public const int MaxAccountsFieldNumber = 3

Field Value

int

PrfFieldNumber

Field number for the "prf" field.

public const int PrfFieldNumber = 1

Field Value

int

Properties

Attributes

Commitments to the attributes which have not been revealed in the policy.

public MapField<uint, Commitment> Attributes { get; }

Property Value

MapField<uint, Commitment>

CredCounter

Commitment to the counter used to generate the credential registration id.

public Commitment CredCounter { get; set; }

Property Value

Commitment

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

IdCredSecSharingCoeff

List of commitments to the coefficients of the sharing polynomial. This polynomial is used in a shared encryption of id_cred_pub among the anonymity revokers.

public RepeatedField<Commitment> IdCredSecSharingCoeff { get; }

Property Value

RepeatedField<Commitment>

MaxAccounts

Commitment to the max_accounts value, which determines the maximum number of credentials that may be created from the identity object.

public Commitment MaxAccounts { get; set; }

Property Value

Commitment

Parser

public static MessageParser<CredentialCommitments> Parser { get; }

Property Value

MessageParser<CredentialCommitments>

Prf

Commitment to the PRF key.

public Commitment Prf { get; set; }

Property Value

Commitment

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

Returns

CredentialCommitments

A deep clone of this object.

Equals(CredentialCommitments)

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

public bool Equals(CredentialCommitments other)

Parameters

other CredentialCommitments

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

Merges the given message into this one.

public void MergeFrom(CredentialCommitments other)

Parameters

other CredentialCommitments

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.