Module account

Source

Re-exports§

pub use auth::AuthSecretKey;
pub use code::AccountCode;
pub use code::procedure::AccountProcedureInfo;
pub use component::AccountComponent;
pub use component::AccountComponentMetadata;
pub use component::AccountComponentTemplate;
pub use component::FeltRepresentation;
pub use component::InitStorageData;
pub use component::MapEntry;
pub use component::MapRepresentation;
pub use component::PlaceholderTypeRequirement;
pub use component::StorageEntry;
pub use component::StorageValueName;
pub use component::StorageValueNameError;
pub use component::TemplateType;
pub use component::TemplateTypeError;
pub use component::WordRepresentation;
pub use delta::AccountDelta;
pub use delta::AccountStorageDelta;
pub use delta::AccountVaultDelta;
pub use delta::FungibleAssetDelta;
pub use delta::NonFungibleAssetDelta;
pub use delta::NonFungibleDeltaAction;
pub use delta::StorageMapDelta;

Modules§

auth
code
component
delta

Structs§

Account
An account which can store assets and define rules for manipulating them.
AccountBuilder
A convenient builder for an Account allowing for safe construction of an account by combining multiple AccountComponents.
AccountFile
Account file contains a complete description of an account, including the Account struct as well as account seed and account authentication info.
AccountHeader
A header of an account which contains information that succinctly describes the state of the components of the account.
AccountIdAnchor
The anchor of an AccountId. See the type’s documentation for details on anchors.
AccountIdPrefixV0
The prefix of an AccountIdV0, i.e. its first field element.
AccountIdV0
Version 0 of the Account identifier.
AccountStorage
Account storage is composed of a variable number of index-addressable StorageSlots up to 255 slots in total.
AccountStorageHeader
Account storage header is a lighter version of the AccountStorage storing only the type and the top-level value for each storage slot.
PartialAccount
A partial representation of an account.
PartialStorage
A partial representation of an account storage, containing only a subset of the storage data.
StorageMap
An account storage map is a sparse merkle tree of depth Self::TREE_DEPTH (64).

Enums§

AccountId
The identifier of an Account.
AccountIdPrefix
The prefix of an AccountId, i.e. its first field element.
AccountIdVersion
The version of an AccountId.
AccountStorageMode
Describes where the state of the account is stored.
AccountType
Represents the different account types recognized by the protocol.
AddressType
The type of an address in Miden.
NetworkId
The identifier of a Miden network.
StorageSlot
An object representing the contents of an account’s storage slot.
StorageSlotType
An object that represents the type of a storage slot.

Functions§

hash_account
Returns hash of an account with the specified ID, nonce, vault root, storage commitment, and code commitment.