Summary
This proposal requests $6,000 USD equivalent in CKB for a 12-week development and validation phase for FiberNuts, an open Cashu-over-Fiber settlement adapter with RUSD reference applications.
FiberNuts lets a stock Cashu mint issue and redeem RUSD-denominated ecash through Fiber Network.
Users can add ecash by paying a Fiber invoice, transfer Cashu tokens directly, settle received tokens by swapping them for fresh proofs, and cash out through an external Fiber invoice. The mint remains custodial and controls issuance, swaps, and redemption.
The protocol already works. The public repository contains the Rust cdk-fiber adapter, an out-of-process processor for an unmodified cdk-mintd, a browser wallet, deployment tooling, and a Community Market application for attendee-to-vendor payments. Public testnet services are live and community members have completed the two-role payment flow.
This grant funds the next three outcomes:
- settlement and refund operations that recover safely after timeouts, lost responses, and process restarts;
- public-testnet hosted-LSP onboarding so users can fund and use a Fiber channel without running their own FNN node; and
- a packaged
cdk-fiberrelease, upstream contribution, independent testnet validation, Community Market pilot, and tightly capped direct-channel mainnet validation.
The grant does not fund past work, mint reserves, user deposits, or routing liquidity. It does not promise a public mainnet mint, trustless custody, guaranteed redemption, or an upstream merge.
Grant amount requested: $6,000 USD equivalent, paid in CKB at the USD value at each disbursement
ETA to completion: 12 weeks from initial disbursement
CKB receiving address: ckb1qyqvznaanauthpv49aajstw6frwc9gvg5nasjdwwnv
What FiberNuts is
FiberNuts connects Cashu bearer ecash to Fiber’s CKB and UDT payment channels:
wallet or application
|
| Cashu HTTP APIs
v
stock cdk-mintd
|
| standard payment-processor gRPC
v
fibernuts-processor + cdk-fiber
|
| Fiber JSON-RPC
v
Fiber node -> CKB
The reusable component is cdk-fiber, a Rust implementation of CDK’s MintPayment interface. It allows an unmodified cdk-mintd to advertise the fiber payment method and rusd unit without a private CDK or Fiber fork.
One operator runs one mint, processor, and Fiber settlement stack. Each mint has its own keys, database, reserves, policies, liquidity, fees, and trust boundary. FiberNuts supports independent operator mints; the project-operated reference mint is not a protocol trust anchor.
Money flow
- Add cash: The wallet pays a RUSD Fiber invoice and receives Cashu proofs only after Fiber reports the invoice
Paid. - Bearer payment: A sender transfers Cashu proofs directly. The recipient is settled only after the issuing mint accepts those proofs and returns fresh proofs.
- Cash out: The mint spends submitted proofs and pays an external RUSD Fiber invoice. A timeout remains pending or recoverable unless Fiber reports an authoritative terminal result.
Why this work is needed
Settlement must survive interruption
The current adapter handles Fiber states conservatively, but complete operation context must survive restart and lost-response boundaries. A delayed cash-out may settle after the original call returns Pending; the processor must recover the original principal, fee, quote, and event state without sending a second payment or mutating a balance twice.
Incoming watches, outgoing correlation, RPC deadlines, event delivery, retries, reconciliation, and refund races need durable state and reproducible failure tests.
Users should not need to operate an FNN node
The current direct-channel flow assumes access to a Fiber node and usable channel liquidity. Fiber’s hosted-LSP work provides a path where an operator hosts Fiber connectivity while the client retains the required signing role.
The user still supplies on-chain RUSD and the CKB capacity required for channel creation. Hosted LSP removes local node operation and manual channel management; it is not a free on-ramp and does not remove mint custody or liquidity risk.
The required grant environment is a reproducible, project-operated public-testnet LSP. The Fiber team’s public testnet LSP will be used for interoperability testing when available, but an external service launch is not a payment condition.
Availability, liquidity, and solvency are different
A reachable mint is not necessarily solvent. Channel capacity does not prove usable directional liquidity, and successful onboarding does not guarantee later redemption. The application must show the active mint, LSP, network, exact RUSD asset, operation state, and known fees without labeling an operator as trusted, verified, liquid, or solvent without supporting evidence.
Loop is a separate liquidity layer
Fiber’s Loop work addresses rebalancing after a channel exists. FiberNuts will document the compatibility boundary but will not implement or fork Loop, operate a Loop provider, or make the draft Loop work a milestone dependency.
Work already completed
The following baseline is not funded retroactively:
cdk-fiber, implementing CDK’s payment-backend interface over Fiber JSON-RPC.fibernuts-processor, exposing the adapter through CDK’s standard gRPC processor protocol.- Compatibility with a stock, unmodified
cdk-mintd. - Conservative handling of
Paid,Received,Pending,Failed, andUnknownFiber states. - Exact network and UDT validation before a Cashu cash-out can probe or pay a Fiber route.
- A browser wallet with per-mint storage, add cash, send, receive-side swap, NUT-18 requests, cash out, activity, and recoverable operation states.
- A Community Market attendee application, vendor terminal, capability-scoped payment relay, and bounded public-testnet claim service.
- Vendor-key-locked NUT-18 payments that the relay cannot redeem.
- Docker deployment, deterministic Rust and TypeScript tests, browser tests, and opt-in live Fiber tests.
- Reproducible devnet and public-testnet runbooks.
- A demonstrated mint-to-transfer-to-cash-out cycle over a live three-node Fiber route with a real routing fee.
- Public testnet wallet, mint, relay, claim service, and Community Market deployments.
The current implementation is pinned to Fiber v0.9.0-rc7 and CDK v0.17.2. The funded work will validate Fiber v0.9.1 and CDK v0.18.2, or newer stable versions pinned at project start, through code and tests rather than assumptions.
FiberNuts received first place and a final score of 28/30 in the relevant Fiber infrastructure category. That result is evidence of the baseline, not a request for retroactive payment.
Why now
- FiberNuts has moved beyond an architecture demo: the protocol, public testnet services, bounded claim flow, and attendee-to-vendor application are available for community testing.
- Public feedback now identifies concrete next barriers rather than hypothetical features: easier onboarding, restart-safe settlement, refunds, clearer risk disclosure, and reproducible operator deployment.
- Fiber
v0.9.1and CDKv0.18.2provide stable compatibility targets, while Fiber’s hosted-LSP work is active enough to define and test an operator-run public-testnet integration boundary.
Trust and responsibility boundaries
- Mint operator: Holds backing RUSD, maintains the spent-proof database, controls issuance and redemption, and may charge a declared Cashu input fee or require authentication.
- LSP operator: Hosts Fiber connectivity and channel runtime, may charge a declared service fee, and can affect availability and routing. The intended client-signer design does not send the user’s root signing secret to the LSP.
- User: Supplies RUSD and CKB capacity, approves funding, protects client recovery material, and chooses which mint liability to hold.
Blind signatures reduce direct issuance-to-redemption linkage. They do not hide timing, amounts, network metadata, browser metadata, or operator policy. Browser proofs remain bearer secrets and are not a guaranteed backup.
Team and roles
-
Developer: Code3ks - protocol, Rust, wallet, LSP integration, deployment, testing, and
documentation -
Contact: Telegram
@code3ks
Relevant track record:
- Built the reusable
cdk-fiberbackend and stock-CDK integration. - Shipped the wallet, mint deployment, relay, claim service, Community Market, CI, and public testnet services as a solo developer.
- Demonstrated live multi-hop RUSD settlement with conservative payment-state handling.
- Received first place and a final score of 28/30 in the prior independent review.
Milestones and staged payments
The project runs for 12 weeks. Funding follows four equal tranches. Every tranche after initial funding follows a public milestone report and reviewer acceptance.
| Payment stage | ETA | Amount | Release condition |
|---|---|---|---|
| Initial funding | Week 0 | $1,500 (25%) | Proposal approved and receiving address verified |
| Milestone 1 | End of week 4 | $1,500 (25%) | Settlement reliability and refund report accepted |
| Milestone 2 | End of week 8 | $1,500 (25%) | Hosted-LSP public-testnet flow accepted |
| Milestone 3 | End of week 12 | $1,500 (25%) | Release, pilot, and validation report accepted |
Initial funding: baseline and execution setup
- Tag the grant baseline and publish the milestone board.
- Pin Fiber, CDK, hosted-LSP, and CKB wallet integration targets.
- Publish the settlement, signer, browser-key, and refund threat/failure model.
- Confirm reviewers, independent pilot operator, reporting schedule, and evidence templates.
- Record the authoritative mainnet RUSD configuration and the validation value cap.
Milestone 1: settlement reliability and refund recovery
ETA: Weeks 1-4
Tranche: $1,500 USD equivalent
Deliverables:
- Durable incoming and outgoing settlement journal keyed by CDK quote ID and Fiber payment hash.
- Correct delayed-success accounting for original principal and actual routing fee.
- Incoming watches and outgoing terminal events restored after processor restart.
- Deduplicated event delivery with no duplicate Fiber dispatch or balance mutation on retry.
- Configurable RPC deadlines, bounded retry with backoff, and bounded reconciliation concurrency.
- Wallet states that distinguish pending, failed, settled, and ambiguous/recoverable outcomes.
- Clear mint, network, asset, fee, availability, and policy provenance in affected flows.
- Reviewed NUT-11 refund behavior for expired vendor-locked Community Market payments, including protection against vendor settlement and attendee refund both succeeding.
- Compatibility matrix and migration notes for the stable Fiber and CDK versions pinned at project
start. - Fault-injection tests for restart, delayed settlement, unknown payment, malformed response, RPC
timeout, event replay, refund race, fee rounding, wrong network/asset/unit, and secret redaction.
Verification:
- Stop the processor during a pending outgoing payment, restart it, and show one Fiber payment with the correct final principal and fee.
- Pay an incoming invoice across restart and show one credit event only after
Paid. - Make one RPC path unresponsive and show its deadline expire while unrelated reconciliation continues.
- Expire and refund a vendor-locked payment, then prove vendor settlement and refund cannot both succeed.
- Publish the tagged milestone release, test logs, known limitations, and recovery report.
Milestone 2: hosted-LSP public-testnet onboarding
ETA: Weeks 5-8
Tranche: $1,500 USD equivalent
Deliverables:
- Typed hosted-LSP adapter isolated from wallet presentation code.
- Reproducible project-operated public-testnet LSP deployment.
- Tenant registration, authenticated communication, client signing, and persisted lifecycle state.
- One documented CKB wallet/provider integration for user-approved RUSD and CKB-capacity funding.
- Funding review showing the exact network, RUSD type script, amount, CKB capacity, and known fees.
- Hosted channel onboarding without the user running FNN or manually invoking channel RPCs.
- Add-cash and cash-out flows between the hosted channel and the selected FiberNuts mint.
- Recovery tests for restart, lost response, duplicate action, wrong network/asset, insufficient capacity, unavailable LSP, and channel-not-ready states.
- A security gate covering credential recovery, signer readiness, nonce handling, invoice and preimage authorization, durable storage, and remaining upstream limitations.
- Public-LSP interoperability results when the Fiber team’s service is available.
- Documented Loop compatibility boundary without implementing or depending on Loop.
Verification:
- From a clean client with no local FNN node, connect the supported CKB wallet, review and approve the exact funding requirement, and reach a ready hosted testnet channel.
- Add RUSD ecash through that channel and show proofs only after Fiber settlement and mint issuance.
- Cash out to a hosted-channel invoice and reconcile principal plus separately displayed mint, LSP, and Fiber fees.
- Interrupt registration, channel opening, add cash, and cash out, then recover withoutduplicate funding, payment, issuance, or balance mutation.
- Publish the tagged milestone release, self-hosted LSP instructions, test evidence, and security limitations.
Milestone 3: reusable release, independent pilot, and controlled mainnet validation
ETA: Weeks 9-12
Tranche: $1,500 USD equivalent
Deliverables:
- Independently consumable, versioned
cdk-fiberpackage with API docs, xampleonfiguration, integration tests, and a supported-version matrix. - Versioned
fibernuts-processorimages forlinux/amd64andlinux/arm64,withecksums,BOM, dependency report, and release notes. - Operator preflight covering versions, RPC reachability, network, RUSD type script, unit scale, processor registration, TLS, backups, channel capacity, and directional liquidity.
- Privacy-preserving health and reconciliation metrics that exclude bearer secrets and user data.
- Public design discussion with CDK maintainers and one review-ready upstream contribution through the agreed path. An external merge is not an acceptance condition.
- One independently administered FiberNuts deployment built from the public release.
- A 14-day public-testnet reliability period with automated smoke checks and reconciliation.
- At least 25 hosted-LSP add-cash or cash-out settlements, including nonzero-fee and forced-recovery cases.
- One supervised Community Market pilot with at least 10 testers, two vendor roles, and 25 payments finalized by receive-side swap.
- Backup-and-restore drill covering the processor journal, mint database, Fiber/LSP state, mint key custody, relay data, client signer recovery, and browser operation recovery.
- Controlled direct-channel mainnet validation with at least 10 reconciled operations, subject to the gate below.
- Final release, quick start, operations and troubleshooting guides, demo, compatibility matrix, completion report, and six months of best-effort maintenance for critical grant-delivered issues.
Verification:
- The independent operator publishes deployment, hosted-channel onboarding, and recovery results from the public instructions.
- The testnet report identifies versions, assets, LSPs, operations, fees, failures, restarts, and the resolution of every ambiguous state.
- The Community Market report distinguishes token delivery from receive-side settlement and records usability findings without exposing bearer data.
- A clean environment installs the package and images, runs the example, preflight, and recovery drill, and links the upstream submission.
- Reviewers inspect the final artifacts and either approve the milestone or provide a concrete remediation list.
Controlled mainnet gate
Mainnet validation is limited to the mature direct-channel path. Hosted LSP and Loop are not required, and this is not a public mainnet launch.
Before value is used:
- the exact mainnet RUSD script, decimals, and Fiber cell dependencies must be confirmed from an authoritative source;
- settlement recovery, backups, preflight, and testnet validation must pass with no unresolved critical or high-severity money-safety issue;
- named operators must approve the incident, shutdown, channel-close, and reconciliation plan; and
- the run must be restricted to named wallets and a direct channel.
The validation is capped at 50 RUSD total live Cashu liability and 5 RUSD per operation.
Operators supply and retain all RUSD and CKB capacity. Grant funds are not used as reserves or user balances. Published evidence will redact proofs, tokens, quote secrets, user-linked invoices, keys and mnemonics.
If the gate cannot pass, no mainnet value will be put at risk. Any replacement deliverable require a public scope amendment and reviewer approval before the final tranche request.
General milestone acceptance
A milestone is complete only when:
- its implementation is merged into the public repository and included in a tagged release;
- its verification scenarios run from public instructions in a clean environment;
- its report links expected and actual results, known limitations, incidents, and use of funds;
- both reviewers have at least seven days to approve or request remediation; and
- critical or high-severity money-safety, privacy, key-handling, or recovery findings are fixed before the next tranche request.
External CDK/Fiber merges, the Fiber team’s public LSP launch, and the Loop draft are not payment conditions. FiberNuts-owned code, self-hosted evidence, release artifacts, upstream submissions, and responses to actionable review feedback are the verifiable outputs.
KPIs
Primary KPI
At least 50 fully reconciled public-testnet economic operations: 25 hosted-LSP add-cash or cash-out settlements and 25 Community Market payments finalized by receive-side swap, with zero duplicate Fiber dispatches and zero unresolved mint-liability discrepancies.
Supporting indicators
- One project-operated and one independently administered FiberNuts deployment.
- One Community Market pilot with at least 10 testers and two vendor roles.
- Every tested restart and lost-response case reaches an authoritative terminal or explicitly recoverable state.
- At least 10 reconciled operations in the capped direct-channel mainnet validation if its gate passes.
- One published
cdk-fiberpackage and one review-ready upstream contribution. - Zero known critical or high-severity vulnerabilities in shipped runtime dependencies at final release.
- Public images, checksums, SBOM, compatibility manifest, and operations documentation.
Budget
The total request is $6,000 USD equivalent in CKB.
| Work area | Amount | What it covers |
|---|---|---|
| Settlement reliability and refund recovery | $1,750 | Durable journal, reconciliation, deadlines, events, restart, refund, and fault-injection tests |
| Hosted-LSP RUSD onboarding | $2,000 | LSP adapter, client signing, CKB wallet funding flow, lifecycle recovery, deployment, and interoperability testing |
| Packaging, diagnostics, and upstream adoption | $1,150 | Versioned package and images, preflight, metrics, SBOM, compatibility work, and upstream submission |
| Pilot, documentation, and controlled validation | $1,100 | Testnet services, independent operator support, Community Market pilot, reports, runbooks, and capped mainnet testing |
| Total | $6,000 |
The budget does not purchase or subsidize RUSD reserves, user balances, CKB channel capacity, speculative assets, paid votes, or guaranteed routing liquidity. There is no formal third-party audit line, and the result will not be represented as an audited production mint.
Sustainability
FiberNuts remains MIT-licensed open infrastructure:
- operators pay for and control their own hosting, reserves, channels, and policies;
- mint operators may configure and disclose the standard Cashu input fee;
- LSP operators may disclose a service fee, while users pay actual Fiber routing costs when used;
- direct bearer handoffs are not charged a central protocol fee; and
- reusable packages and upstream-facing work reduce maintenance cost for later operators.
FiberNuts has no token. The developer commits to six months of best-effort maintenance after the final milestone for critical security, money-safety, recovery, and supported-version compatibility issues in the grant-delivered release line.
Key risks and mitigations
- Custodial mint: Every balance names its mint, and the UI states that the operator controls issuance and redemption and may impose authentication or KYC.
- Hosted-LSP maturity: The adapter is tested against a reproducible operator-run deployment;
external service availability is not a milestone dependency. - Signing material: Root signing material is not sent to the LSP. Recovery, authorization, nonce behavior, storage, and interruption safety are explicit test gates.
- User funding burden: The interface states that users supply RUSD and CKB capacity; LSP is not presented as free funding.
- Liquidity and solvency: Reachability, capacity, directional liquidity, reserves, and solvency are presented as distinct concepts.
- Settlement ambiguity: Missing responses remain pending or recoverable and never authorize a duplicate payment or optimistic balance update.
- Bearer secrets: Proofs, tokens, quote secrets, capabilities, signer material, and user-linked invoices are excluded from URLs, analytics, ordinary logs, screenshots, and reports.
- Upstream changes: Fiber, CDK, and LSP versions are pinned behind typed adapters and covered by a compatibility matrix.
- Mainnet risk: The validation is access-limited, operator-funded, preflight-gated, and capped;
it is not advertised as a public deposit service.
Out of scope
- Automatic cross-mint conversion or merging liabilities from separate mints.
- Threshold, federated, or script-controlled mint custody.
- Trustless exit, proof of reserves, or guaranteed redemption.
- Implementing or forking Fiber’s hosted-LSP or Loop protocols inside FiberNuts.
- Operating a Loop provider, automated liquidity market, or guaranteed route service.
- Public production mainnet mint/LSP operation or unrestricted public deposits.
- Formal third-party audit or production endorsement.
- Fiat onboarding, free RUSD funding, or grant-funded reserves and channel liquidity.
- Lightning/Fiber cross-chain settlement, native mobile wallet, cloud custody, or broad account
system. - Token issuance, central protocol fee, paid marketing, or voting incentives.
Reporting and accountability
- Publish a status update at least every two weeks.
- Publish one evidence-based report for each payment milestone.
- Keep the public project board current with deliverables, blockers, and remediation work.
- Record material changes before implementation and obtain community agreement when they affect budget, security boundaries, mainnet exposure, or acceptance criteria.
- Give reviewers at least seven days to evaluate each report before requesting the next tranche.
- Publish a final comparison of promised versus delivered work and account for the complete budget.
Benefits to CKB
- A reusable private-payment adapter for RUSD and other Fiber assets.
- A node-light onboarding path that keeps funding and signing responsibilities explicit.
- More application-driven Fiber activity through channel onboarding, add cash, cash out, and merchant settlement.
- Independently operated mints instead of dependence on one project service.
- A standards-oriented bridge to Cashu and CDK without a private mint fork.
- Public application, recovery, and operator evidence rather than an infrastructure-only demo.
Closing
FiberNuts has already shown that Cashu bearer ecash can use Fiber as a real RUSD settlement rail The protocol adapter works, public testnet services are available, and the Community Market gives the CKB community a practical way to evaluate the combination.
This proposal focuses the next phase on three barriers to responsible adoption: settlement must recover safely after interruption, users should not need to operate an FNN node, and another operator must be able to reproduce and evaluate the system from public artifacts.
The result remains bounded: FiberNuts will not remove Cashu’s custodial trust model, fund user channels, guarantee liquidity, or claim that availability proves solvency. It will deliver a safer adapter, a public-testnet hosted-LSP path, reusable release artifacts, community validation, and a small gated mainnet proof of the mature direct-channel path.
Supporting links
- FiberNuts repository: GitHub - code3ks/fibernuts: Cashu ecash mint backed by Fiber Network payment channels. Instant private RUSD payments on Nervos CKB. · GitHub
- Reference wallet: https://fibernuts.xyz
- Reference mint: https://mint.fibernuts.xyz
- Community Market: https://market.fibernuts.xyz
- Community Market forum post: FiberNuts Community Market: A Testnet App for Cashu + Fiber
- FiberNuts discussion and Fiber team feedback: FiberNuts After the Hackathon: What Could Cashu + Fiber Enable on CKB? - #7 by quake
- Fiber hosted-LSP pull request: LSP support by chenyukang · Pull Request #1623 · nervosnetwork/fiber · GitHub
- Fiber Loop design issue: Design: Fiber liquidity management milestones · Issue #1541 · nervosnetwork/fiber · GitHub
- Fiber Loop pull request: feat: add liquidity management Loop In and Loop Out by quake · Pull Request #1643 · nervosnetwork/fiber · GitHub
- Fiber releases: Releases · nervosnetwork/fiber · GitHub
- CDK releases: Releases · cashubtc/cdk · GitHub
- Cashu protocol specifications: GitHub - cashubtc/nuts: Cashu protocol specifications https://cashubtc.github.io/nuts/ · GitHub
- CKB Community Fund DAO rules: CKB Community Fund DAO Rules and Process
- Official prior review result: Gone in 60ms: Fiber Network Infrastructure Hackathon Results