Repository navigation
design(id): currency control plane — registry, account factory, gateway (#2062) - #2315
Conversation
…ay (#2062) Design doc for the ID currency control plane: the registry that owns ledger-u32 allocation and currency metadata, the deterministic account factory mapping ID identities to TigerBeetle accounts, and the gateway service that performs ID-signature and issuance-permission checks before any ledger write. Includes the threat model (the gateway is the sole auth boundary in front of an unauthenticated ledger), reuses the repo's existing request-signing and account-key scheme, and names five buildable follow-up slices. Unblocks the gated currency PoC #2298. Refs #2062
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 10 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Design pass for #2062 (ID program wave-1, LIST 11). Docs-only: one new dated record plus nothing else.
What this is
The TigerBeetle investigation (#2040) established that TigerBeetle is a settlement engine with no authentication and no currency metadata — a currency is a bare
u32ledger, and anything that can reach the cluster can move money. This document designs the control plane that must exist around it:ledgeru32s, holds name/symbol/scale/issuer/supply-policy/status, and is the authority for "which u32 means what". The signed graph object is the canonical record; the registry row is a derived index (rebuildable).(ledger, kind, owner, salt), so creation is idempotent and stateless; plus the per-currency system accounts (issuer, liquidity, fee, burn) and holder accounts, with the flags fixed at creation.It deliberately reuses the repo's existing machinery rather than inventing a second one: the
directory_auth.rsSignedrequest envelope (id-request-v1canonical message, 5-minute window,ReplayGuard,verify_strict),chain.rs's domain-tagged canonical CBOR, and the account/device key split (directory.rs,groups/mod.rs). Issuance authority binds to the account key, sodevice.revokecan withdraw a lost device without moving the currency.Follow-ups named (§10)
F1 registry schema + ledger allocator · F2 account factory · F3 gateway envelope · F4 reconciliation/supply audit · F5 PoC (explicitly a PoC, not the permanent service). Filed as issues linked from #2062.
Notes
doc/2026-10-29T12-42-21Z_design_currency_control_plane/.Refs #2062, #2040, #2043, #2063, #2066, #2298
Need help on this PR? Tag
@codesmith-botwith what you need.