Table of Contents

Struct AccountKeyIndex

Namespace
Concordium.Sdk.Types
Assembly
Concordium.Sdk.dll

Represents an account key index.

An account has one or more credentials, each identified by a unique credential index (modeled by AccountCredentialIndex).

For each credential the account may have up to 255 keys, where each such key is identified by another unique byte-value referred to as its account key index. This index is relative to the credential index of the credential to which it belongs. Thus a pair of a credential index of the account and the key index of a key belonging to the corresponding credential uniquely identifies that key.

public readonly record struct AccountKeyIndex : IEquatable<AccountKeyIndex>
Implements
Inherited Members

Constructors

AccountKeyIndex(byte)

Represents an account key index.

An account has one or more credentials, each identified by a unique credential index (modeled by AccountCredentialIndex).

For each credential the account may have up to 255 keys, where each such key is identified by another unique byte-value referred to as its account key index. This index is relative to the credential index of the credential to which it belongs. Thus a pair of a credential index of the account and the key index of a key belonging to the corresponding credential uniquely identifies that key.

public AccountKeyIndex(byte Value)

Parameters

Value byte

An account key index represented by a byte.

Properties

Value

An account key index represented by a byte.

public byte Value { get; init; }

Property Value

byte

Methods

From(string)

Creates an instance from a string representing a byte value.

public static AccountKeyIndex From(string index)

Parameters

index string

An index represented as a string representing to be parsed as a byte value.

Returns

AccountKeyIndex

Exceptions

ArgumentException

The index could not be parsed as a byte value.