limitr-network
Limitr Network
Limitr Network lets one Limitr policy use another's services and pay for them. A provider publishes plans, prices,
and routes from its policy. A consumer signs a voucher ("up to this much, on this plan, until then"). The
provider makes a voucher customer (ID nv_<voucher>, type voucher) with the spend as a cap, and grants the
routes its plan reaches; on the consumer's side each route is a tool (a capability). Every request is signed by
the consumer's key and every response carries the provider's signed receipt. Prices are in runes (the
provider's exchange says what a rune is; 1 USD by default).
It's an optional module (src/network/): a policy that doesn't call limitr.network() never loads it. The whole
protocol, its HTTP included, runs in the policy; the host keeps the key, allows hosts, and passes requests to one
handler.
Docs in the repo: src/network/README.md (overview), src/network/SPEC.md (design), src/network/PROTOCOL.md
(wire format and test vectors), typescript/tutorial/network/ and python/tutorial/network/ (seven runnable chapters
each), typescript/demos/network/ and python/demos/network/.
Every field: references/config.md.