Table of Contents

Class CryptographicParameters

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

The response for GetCryptographicParameters.

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

Constructors

CryptographicParameters()

public CryptographicParameters()

CryptographicParameters(CryptographicParameters)

public CryptographicParameters(CryptographicParameters other)

Parameters

other CryptographicParameters

Fields

BulletproofGeneratorsFieldNumber

Field number for the "bulletproof_generators" field.

public const int BulletproofGeneratorsFieldNumber = 2

Field Value

int

GenesisStringFieldNumber

Field number for the "genesis_string" field.

public const int GenesisStringFieldNumber = 1

Field Value

int

OnChainCommitmentKeyFieldNumber

Field number for the "on_chain_commitment_key" field.

public const int OnChainCommitmentKeyFieldNumber = 3

Field Value

int

Properties

BulletproofGenerators

Generators for the bulletproofs. It is a serialized list of 256 group elements in the G1 group of the BLS12-381 curve.

public ByteString BulletproofGenerators { get; set; }

Property Value

ByteString

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

GenesisString

A free-form string used to distinguish between different chains even if they share other parameters.

public string GenesisString { get; set; }

Property Value

string

OnChainCommitmentKey

A shared commitment key known to the chain and the account holder (and therefore it is public). The account holder uses this commitment key to generate commitments to values in the attribute list. It is a serialized pair of group elements in the G1 group of the BLS12-381 curve.

public ByteString OnChainCommitmentKey { get; set; }

Property Value

ByteString

Parser

public static MessageParser<CryptographicParameters> Parser { get; }

Property Value

MessageParser<CryptographicParameters>

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

Returns

CryptographicParameters

A deep clone of this object.

Equals(CryptographicParameters)

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

public bool Equals(CryptographicParameters other)

Parameters

other CryptographicParameters

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

Merges the given message into this one.

public void MergeFrom(CryptographicParameters other)

Parameters

other CryptographicParameters

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.