Skip to main content

Module types

Module types 

Source
Expand description

The shared identifier + value types of the store surface.

The coin/identity types are re-exported VERBATIM from dig-merkle (which re-exports the chia-wallet-sdk byte-source-of-truth) so a consumer depends on ONE canonical shape and never a shadow copy that could byte-drift:

Two dig-store-owned view types are added here:

  • RootHistory — the ordered list of merkle roots a store has anchored across its generations, produced by the on-chain lineage walk (SPEC §5);
  • CapsuleIdentity — the (store_id, root_hash) a capsule declares, recovered OFF-CHAIN from a compiled .dig module’s bytes (SPEC §5/§11). It is the dig-store-native view (canonical Bytes32) of a dig_capsule::capsule::Capsule, so the whole store surface speaks ONE byte type rather than exposing dig-capsule’s separate Bytes32.

Structs§

CapsuleIdentity
The identity a capsule declares: one immutable store generation, the pair (store_id, root_hash).
Coin
CoinSpend
Confirmations
How deeply the live tip is buried under the current chain peak (SPEC §5).
DataStore
Everything that is required to spend a DataStore coin.
DidRef
A reference to a DID, identified by its immutable launcher_id (the DID’s on-chain identity).
DigDataStoreMetadata
The DIG DataLayer metadata: the SDK’s DataStoreMetadata shape with the exact byte count ("b") REPLACED by a power-of-2 size_bucket ("sz"), plus the additive program_hash ("p").
LineageProof
MerkleCoinSpend
The result of building a DataLayer-coin operation: the unsigned coin spends plus the recreated child DataStore.
RootHistory
The ordered history of merkle roots a store has anchored, oldest first.
StoreStatus
The aggregate on-chain status of a store, produced by crate::get_store_status from ONE consistent lineage walk plus a single supplementary read on the resolved tip (SPEC §5, NC-9).

Enums§

DelegatedPuzzle
Proof
StoreStatusKind
The lifecycle state of a store as seen on chain (SPEC §5).

Type Aliases§

Bytes32