Module casper_types::account
source · Expand description
Contains types and constants associated with user accounts.
Re-exports
pub use self::action_thresholds::ActionThresholds;
pub use self::associated_keys::AssociatedKeys;
pub use self::error::TryFromIntError;
Modules
- This module contains types and functions for managing action thresholds.
- This module contains types and functions for working with keys associated with an account.
Structs
- Represents an Account in the global state.
- A newtype wrapping an array which contains the raw bytes of the AccountHash, a hash of Public Key and Algorithm
- Associated error type of
TryFrom<&[u8]>
forAccountHash
. - The weight attributed to a given
AccountHash
in an account’s associated keys.
Enums
- The various types of action which can be performed in the context of a given account.
- Errors that can occur while adding a new
AccountHash
to an account’s associated keys map. - Error returned when decoding an
AccountHash
from a formatted string. - Errors that can occur while removing a
AccountHash
from an account’s associated keys map. - Errors that can occur while changing action thresholds (i.e. the total
Weight
s of signingAccountHash
s required to perform various actions) on an account. - Errors that can occur while updating the
Weight
of aAccountHash
in an account’s associated keys map.
Constants
- The prefix applied to the hex-encoded
AccountHash
to produce a formatted string representation. - The length in bytes of a
AccountHash
. - The number of bytes in a serialized
Weight
.