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:
Bytes32— a 32-byte identifier (astore_id/launcher_id, a merkle root, a DID id);Coin/CoinSpend— the Chia coin + confirmed spend;DataStore/DigDataStoreMetadata— the hydrated DataLayer coin + its on-chain metadata;DidRef— a reference to an owning DID by its launcher id;MerkleCoinSpend— the unsigned result of a lifecycle operation (coin spends + child store);Proof/LineageProof— a singleton’s eve-or-lineage proof and the lineage proof a child spend must carry (seecrate::child_lineage_proof);DelegatedPuzzle— an admin/writer/oracle delegated puzzle a store may carry (SPEC §5).
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.digmodule’s bytes (SPEC §5/§11). It is thedig-store-native view (canonicalBytes32) of adig_capsule::capsule::Capsule, so the whole store surface speaks ONE byte type rather than exposingdig-capsule’s separateBytes32.
Structs§
- Capsule
Identity - The identity a capsule declares: one immutable store generation, the pair
(store_id, root_hash). - Coin
- Coin
Spend - Confirmations
- How deeply the live tip is buried under the current chain peak (SPEC §5).
- Data
Store - Everything that is required to spend a
DataStorecoin. - DidRef
- A reference to a DID, identified by its immutable
launcher_id(the DID’s on-chain identity). - DigData
Store Metadata - The DIG DataLayer metadata: the SDK’s
DataStoreMetadatashape with the exact byte count ("b") REPLACED by a power-of-2size_bucket("sz"), plus the additiveprogram_hash("p"). - Lineage
Proof - Merkle
Coin Spend - The result of building a DataLayer-coin operation: the unsigned coin spends plus the recreated child DataStore.
- Root
History - The ordered history of merkle roots a store has anchored, oldest first.
- Store
Status - The aggregate on-chain status of a store, produced by
crate::get_store_statusfrom ONE consistent lineage walk plus a single supplementary read on the resolved tip (SPEC §5, NC-9).
Enums§
- Delegated
Puzzle - Proof
- Store
Status Kind - The lifecycle state of a store as seen on chain (SPEC §5).