Class AccountTransactionSignature
- Namespace
- Concordium.Sdk.Transactions
- Assembly
- Concordium.Sdk.dll
Represents the signature of a signed account transaction.
An account has one or more credentials with each such credential having up to 256 sign keys (and accompanying verification keys). Each credential is identified by its unique AccountCredentialIndex and each key by a unique pair of a AccountCredentialIndex corresponding to the credential to which it belongs, and a unique AccountKeyIndex relative to that credential index of the account. For each key, it is thus represented by some pair of a credential index and a key index.
An AccountTransactionSignature corresponds to a mapping from credential and key indices to signatures produced by signing the transaction hash with the account keys corresponding to the indices.
Producers of AccountTransactionSignatures should implement ITransactionSigner.
public sealed record AccountTransactionSignature : IEquatable<AccountTransactionSignature>
- Inheritance
-
AccountTransactionSignature
- Implements
- Inherited Members
Properties
SignatureMap
Internal representation of the signature. This is a map from account credential indices to account signature maps.
public ImmutableDictionary<AccountCredentialIndex, AccountSignatureMap> SignatureMap { get; init; }
Property Value
Methods
Create(Dictionary<AccountCredentialIndex, Dictionary<AccountKeyIndex, byte[]>>)
Creates a new instance of the AccountTransactionSignature class.
public static AccountTransactionSignature Create(Dictionary<AccountCredentialIndex, Dictionary<AccountKeyIndex, byte[]>> signatureMaps)
Parameters
signatureMaps
Dictionary<AccountCredentialIndex, Dictionary<AccountKeyIndex, byte[]>>Dictionary corresponding to the map.
Returns
Exceptions
- ArgumentException
A signature is not 64 bytes.
ToProto()
Converts the account transaction signature to its corresponding protocol buffer message instance.
public AccountTransactionSignature ToProto()