Module account

Source

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§

auth
code
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.
AccountComponent
An AccountComponent defines a Library of code and the initial value and types of the StorageSlots it accesses.
AccountComponentMetadata
Represents the full component template configuration.
AccountComponentTemplate
Represents a template containing a component’s metadata and its associated library.
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.
InitStorageData
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.
PlaceholderTypeRequirement
Describes the expected type and additional metadata for a templated storage entry.
StorageMap
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.
StorageValueName
A simple wrapper type around a string key that identifies values.
TemplateType
A newtype wrapper around a String, representing a template’s type identifier.

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.
FeltRepresentation
Supported element representations for a component’s storage entries.
NetworkId
The identifier of a Miden network.
StorageEntry
Represents a single entry in the component’s storage layout.
StorageSlot
An object representing the contents of an account’s storage slot.
StorageSlotType
An object that represents the type of a storage slot.
StorageValueNameError
TemplateTypeError
Errors that can occur when parsing or converting template types.
WordRepresentation
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.