Layer 4 · DIG CAT payment & pricing
Canonical reference:
chip35_dl_coin::dig(the canonical builder);digstore-chain::dig/::cat(the byte-mirror). Builds the per-capsule $DIG payment that rides with a root-advance.
Byte-identical constants (asserted in tests on both sides)
| Constant | Value | Reference |
|---|---|---|
DIG_ASSET_ID (TAIL hash, mainnet) | a406d3a9de984d03c9591c10d917593b434d5263cabe2b42f6b367df16832f81 | dig.rs:43 |
DIG_TREASURY_INNER_PUZZLE_HASH | ec7c304708c7d59c078d5ae098d0dea004decf47fa1cafebb266c10ad6466ce8 | dig.rs:56 |
| DIG decimals | 3 (1 DIG = 1000 base units) | mirror dig.rs:13 |
The treasury inner ph decodes from xch1a37rq3cgcl2ecpudttsf35x75qzdan68lgw2l6ajvmqs44jxdn5qv6pk3y.
The payment builder
build_dig_store_payment(buyer_synth_key, dig_cats: Vec<Cat>, store_id, amount) -> Vec<CoinSpend>
- Validate every
dig_cat's asset id== DIG_ASSET_ID. - Ring-spend the DIG CATs (lead carries the CREATE_COINs; the rest emit
assert_concurrent_spend(lead)). - Create one DIG-CAT coin of
amounttoDIG_TREASURY_INNER_PUZZLE_HASH, carrying memos[treasury_inner_ph (hint), store_id]. - Return change to the buyer (hinted).
- Reserve no XCH — the ring nets to zero; the XCH network fee rides separately (
add_fee).
(chip35 dig.rs:84. The mirror's build_dig_payment uses the chia-wallet-sdk Action/Spends system but produces the same shape — cat.rs:208-281.)