[][src]Module casperlabs_types::account

Contains types and constants associated with user accounts.

Structs

Ed25519

A newtype wrapping a Ed25519Bytes which is the raw bytes of the public key of an Ed25519 key pair.

TryFromSliceForPublicKeyError

Associated error type of TryFrom<&[u8]> for PublicKey.

Weight

The weight attributed to a given PublicKey in an account's associated keys.

Enums

ActionType

The various types of action which can be performed in the context of a given account.

AddKeyFailure

Errors that can occur while adding a new PublicKey to an account's associated keys map.

PublicKey

An enum of supported public key types.

RemoveKeyFailure

Errors that can occur while removing a PublicKey from an account's associated keys map.

SetThresholdFailure

Errors that can occur while changing action thresholds (i.e. the total Weights of signing PublicKeys required to perform various actions) on an account.

UpdateKeyFailure

Errors that can occur while updating the Weight of a PublicKey in an account's associated keys map.

Constants

ED25519_LENGTH

The length in bytes of a PublicKey.

ED25519_SERIALIZED_LENGTH

The number of bytes in a serialized Ed25519.

MAX_ASSOCIATED_KEYS

Maximum number of associated keys (i.e. map of PublicKeys to Weights) for a single account.

PUBLIC_KEY_SERIALIZED_MAX_LENGTH

The upper bound of bytes in a serialized PublicKey.

WEIGHT_SERIALIZED_LENGTH

The number of bytes in a serialized Weight.

Type Definitions

Ed25519Bytes

A type alias for the raw bytes of an Ed25519 public key.