Repository navigation
Proposal: pluggable x402 backends for a Kaspa TN10 adapter #3110
Replies: 1 comment
|
Hardening update after the initial proposal: I exercised the adapter in a real local Cloudflare workerd runtime via Wrangler 4.131.2 (compatibility date The Worker generated a schema-valid Kaspa One separate limitation showed up: a generic esbuild I also added concurrency/negative-path tests on the adapter branch: 17/17 now pass, including single |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
We have a TN10-validated community adapter that connects EmDash x402 enforcement to a Kaspa x402
DirectModeServer:https://github.com/KaspaScopio/emdash-kaspa-x402-adapter
Before taking this further, I’d really appreciate a sanity check from the EmDash side: are we overlapping anything already planned for x402 extensibility, and does this API shape feel like a good fit?
The adapter itself is intentionally external. On the EmDash side, the prototype is deliberately small: allow
@emdash-cms/x402to load a backend factory by static Vite import, plus optional static imports passed into that factory for non-serializable deployment values such as aserverFactory.Prototype config shape:
What has been validated:
402 + PAYMENT-REQUIRED → PAYMENT-SIGNATURE → 200 + PAYMENT-RESPONSE;Latest TN10 proof transaction:
340712f53d687c89e294ca4df807be0d599acba64c6052caa90013f357b34956A few things I’d especially value feedback on:
@emdash-cms/x402, or would you prefer protocol-specific integrations to live elsewhere?module/export/options/importsthe right boundary, or would you prefer a different static-import API?This is still experimental and TN10-only. We’d rather get the architecture right with maintainer input before opening a feature PR.
All reactions