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:

  • Bytes32 — a 32-byte identifier (a store_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).

RootHistory is the one dig-store-owned view type: the ordered list of merkle roots a store has anchored across its generations, produced by the on-chain lineage walk (SPEC §5).

Structs§

Coin
CoinSpend
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").
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.

Type Aliases§

Bytes32