Re-exports§
pub use auth::AuthSecretKey;pub use code::AccountCode;pub use code::procedure::AccountProcedureInfo;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§
Structs§
- Account
- An account which can store assets and define rules for manipulating them.
- Account
Builder - A convenient builder for an
Accountallowing for safe construction of an account by combining multipleAccountComponents. - Account
Component - An
AccountComponentdefines aLibraryof code and the initial value and types of theStorageSlots it accesses. - Account
Component Metadata - Represents the full component template configuration.
- Account
Component Template - Represents a template containing a component’s metadata and its associated library.
- Account
File - Account file contains a complete description of an account, including the Account struct as well as account seed and account authentication info.
- Account
Header - A header of an account which contains information that succinctly describes the state of the components of the account.
- Account
IdAnchor - The anchor of an
AccountId. See the type’s documentation for details on anchors. - Account
IdPrefix V0 - The prefix of an
AccountIdV0, i.e. its first field element. - Account
IdV0 - Version 0 of the
Accountidentifier. - Account
Storage - Account storage is composed of a variable number of index-addressable StorageSlots up to 255 slots in total.
- Account
Storage Header - Account storage header is a lighter version of the AccountStorage storing only the type and the top-level value for each storage slot.
- Init
Storage Data - Represents the data required to initialize storage entries when instantiating an AccountComponent from a template.
- MapEntry
- Key-value entry for storage maps.
- MapRepresentation
- Supported map representations for a component’s storage entries.
- Placeholder
Type Requirement - Describes the expected type and additional metadata for a templated storage entry.
- Storage
Map - Account storage map is a Sparse Merkle Tree of depth 64. It can be used to store more data as there is in plain usage of the storage slots. The root of the SMT consumes one account storage slot.
- Storage
Value Name - A simple wrapper type around a string key that identifies values.
- Template
Type - A newtype wrapper around a
String, representing a template’s type identifier.
Enums§
- Account
Id - The identifier of an
Account. - Account
IdPrefix - The prefix of an
AccountId, i.e. its first field element. - Account
IdVersion - The version of an
AccountId. - Account
Storage Mode - Describes where the state of the account is stored.
- Account
Type - Represents the different account types recognized by the protocol.
- Address
Type - The type of an address in Miden.
- Felt
Representation - Supported element representations for a component’s storage entries.
- Network
Id - The identifier of a Miden network.
- Storage
Entry - Represents a single entry in the component’s storage layout.
- Storage
Slot - An object representing the contents of an account’s storage slot.
- Storage
Slot Type - An object that represents the type of a storage slot.
- Storage
Value Name Error - Template
Type Error - Errors that can occur when parsing or converting template types.
- Word
Representation - Defines how a word is represented within the component’s storage description.
Functions§
- hash_
account - Returns hash of an account with the specified ID, nonce, vault root, storage commitment, and code commitment.