[][src]Module casperlabs_types::account

Contains types and constants associated with user accounts.

Structs

PublicKey

A newtype wrapping a [u8; PUBLIC_KEY_LENGTH] which is the raw bytes of the public key of a cryptographic asymmetric key pair.

PurseId

A newtype wrapping a URef which represents the ID of a purse.

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.

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

MAX_ASSOCIATED_KEYS

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

PUBLIC_KEY_LENGTH

The length in bytes of a PublicKey.

PUBLIC_KEY_SERIALIZED_LENGTH

The number of bytes in a serialized PublicKey.

PURSE_ID_SERIALIZED_LENGTH

The number of bytes in a serialized PurseId.

WEIGHT_SERIALIZED_LENGTH

The number of bytes in a serialized Weight.