Module miden_objects::accounts

source ·

Re-exports§

Modules§

Structs§

  • An account which can store assets and define rules for manipulating them.
  • A public interface of an account.
  • Account data contains a complete description of an account, including the Account struct as well as account seed and account authentication info.
  • Unique identifier of an account.
  • Account storage consists of 256 index-addressable storage slots.
  • A stub of an account which contains information that succinctly describes the state of the components of the account.

Enums§

  • Specifies the account type.
  • AuthData is a representation of the AuthScheme struct meant to be used for Account serialisation and deserialisation for transport of Account data
  • An object that represents the type of a storage slot.

Functions§

  • Returns the digest of two hashing permutations over the seed, code root, storage root and padding.
  • Given a Digest returns its proof-of-work.
  • Finds and returns a seed suitable for creating an account ID for the specified account type using the provided initial seed as a starting point. Using a single thread.
  • Returns hash of an account with the specified ID, nonce, vault root, storage root, and code root.
  • Validates that the provided seed is valid for the provided account.

Type Aliases§

  • A type that represents a single storage slot item. The tuple contains the slot index of the item and the entry of the item.