[][src]Module casperlabs_types::account

Contains types and constants associated with user accounts.

Structs

AccountHash

A newtype wrapping a AccountHashBytes which is the raw bytes of the AccountHash, a hash of Public Key and Algorithm

TryFromSliceForAccountHashError

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

Weight

The weight attributed to a given AccountHash 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 AccountHash to an account's associated keys map.

RemoveKeyFailure

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

SetThresholdFailure

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

UpdateKeyFailure

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

Constants

ACCOUNT_HASH_LENGTH

The length in bytes of a AccountHash.

ACCOUNT_HASH_SERIALIZED_LENGTH

The number of bytes in a serialized AccountHash.

MAX_ASSOCIATED_KEYS

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

WEIGHT_SERIALIZED_LENGTH

The number of bytes in a serialized Weight.

Type Definitions

AccountHashBytes

A type alias for the raw bytes of an Account Hash.