Table of Contents

Class AccountSignatureMap

Namespace
Concordium.Sdk.Transactions
Assembly
Concordium.Sdk.dll

Represents a map from AccountKeyIndex values to signatures.

An AccountSignatureMap corresponds to a mapping from key indices to signatures produced by signing a transaction hash with the account keys corresponding to the indices. A key index is always relative to an AccountCredentialIndex. Each signature is currently produced by signing with an Ed25519SignKey and therefore 64 bytes long.

public sealed record AccountSignatureMap : IEquatable<AccountSignatureMap>
Inheritance
AccountSignatureMap
Implements
Inherited Members

Properties

Signatures

Internal representation of the map.

public ImmutableDictionary<AccountKeyIndex, byte[]> Signatures { get; init; }

Property Value

ImmutableDictionary<AccountKeyIndex, byte[]>

Methods

Create(Dictionary<AccountKeyIndex, byte[]>)

Creates a new instance of the AccountSignatureMap class.

public static AccountSignatureMap Create(Dictionary<AccountKeyIndex, byte[]> signatures)

Parameters

signatures Dictionary<AccountKeyIndex, byte[]>

A map from account key indices to signatures.

Returns

AccountSignatureMap

Exceptions

ArgumentException

A signature is not 64 bytes.

Equals(AccountSignatureMap?)

Check for equality.

public bool Equals(AccountSignatureMap? other)

Parameters

other AccountSignatureMap

Returns

bool

GetHashCode()

Gets hash code.

public override int GetHashCode()

Returns

int

ToProto()

Converts the account signature map to its corresponding protocol buffer message instance.

public AccountSignatureMap ToProto()

Returns

AccountSignatureMap