state implements the anonymous transfer state machine used by the
fintech embodiments.
Import path: github.com/co-mission/shyware/state
Invariants enforced on every block
The state machine enforces three properties before any transfer is committed:ExecuteTransfer to return an error and
the transaction to be rejected. The block is committed with the failing transaction excluded.
State lifecycle
executeTransfer — the core state transition
List storage layout
Value conservation in the production circuit
When the Pedersen commitment circuit is complete,executeTransfer will be extended to:
Public query surface
The following are queryable without operator credentials:| Path | Returns |
|---|---|
/supply/{asset_id} | SupplyRecord — total minted, burned, supply |
/transfers/count | Total number of transfers (= len(L1)) |
/transfer/{transfer_id} | TransferRecord — amount + asset, no identity |
account_commitment to the operator’s admin API.