[DIS] FiberNuts: Reliable Cashu-over-Fiber Payments with Hosted-LSP Onboarding

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:

  1. settlement and refund operations that recover safely after timeouts, lost responses, and process restarts;
  2. public-testnet hosted-LSP onboarding so users can fund and use a Fiber channel without running their own FNN node; and
  3. a packaged cdk-fiber release, 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, and Unknown Fiber 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.1 and CDK v0.18.2 provide 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-fiber backend 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:

  1. Stop the processor during a pending outgoing payment, restart it, and show one Fiber payment with the correct final principal and fee.
  2. Pay an incoming invoice across restart and show one credit event only after Paid.
  3. Make one RPC path unresponsive and show its deadline expire while unrelated reconciliation continues.
  4. Expire and refund a vendor-locked payment, then prove vendor settlement and refund cannot both succeed.
  5. 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:

  1. 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.
  2. Add RUSD ecash through that channel and show proofs only after Fiber settlement and mint issuance.
  3. Cash out to a hosted-channel invoice and reconcile principal plus separately displayed mint, LSP, and Fiber fees.
  4. Interrupt registration, channel opening, add cash, and cash out, then recover withoutduplicate funding, payment, issuance, or balance mutation.
  5. 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-fiber package with API docs, xampleonfiguration, integration tests, and a supported-version matrix.
  • Versioned fibernuts-processor images for linux/amd64 and linux/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:

  1. The independent operator publishes deployment, hosted-channel onboarding, and recovery results from the public instructions.
  2. The testnet report identifies versions, assets, LSPs, operations, fees, failures, restarts, and the resolution of every ambiguous state.
  3. The Community Market report distinguishes token delivery from receive-side settlement and records usability findings without exposing bearer data.
  4. A clean environment installs the package and images, runs the example, preflight, and recovery drill, and links the upstream submission.
  5. 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:

  1. the exact mainnet RUSD script, decimals, and Fiber cell dependencies must be confirmed from an authoritative source;
  2. settlement recovery, backups, preflight, and testnet validation must pass with no unresolved critical or high-severity money-safety issue;
  3. named operators must approve the incident, shutdown, channel-close, and reconciliation plan; and
  4. 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:

  1. its implementation is merged into the public repository and included in a tagged release;
  2. its verification scenarios run from public instructions in a clean environment;
  3. its report links expected and actual results, known limitations, incidents, and use of funds;
  4. both reviewers have at least seven days to approve or request remediation; and
  5. 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-fiber package 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

38 Likes

Just went through this documentation and your KPIs.

I have to commend you for a job well done

The docs are comprehensive and highly informative.

Would you be interested in hopping on a 1-on-1 call with me to discuss a few things @Code3ks

9 Likes

Hi @code3ks,

Thanks for the proposal. The repo and the money-safety tests are solid groundwork.

Three questions:

  1. Hosted LSP: Who operates it, does it open inbound RUSD channels for new users, and what does it cost them?
  2. Onboarding: After the 12 weeks, what does a user with only a browser wallet need to do to go from zero to holding RUSD ecash?
  3. Milestones: How do the 12 weeks break down into payout milestones, and is mainnet in scope?

I run a Fiber node and am happy to open an RUSD channel to the testnet mint. Ping me when it’s ready to test.

Best regards,
PSBerlin

2 Likes

Thanks for the review, and especially for offering to open an RUSD channel to the testnet mint. That would be helpful for interoperability testing.

1. Hosted LSP: I will operate the hosted LSP as a grant deliverable, allowing users to open and manage Fiber channels without running their own FNN node. Users provide their own on-chain RUSD and required CKB capacity, while retaining the client signing role. Applicable mint, LSP and routing fees will be disclosed before approval. I’ll also test interoperability with Fiber’s hosted LSP when available.

2. Onboarding: Users connect a supported CKB wallet to the FiberNuts browser wallet, review and approve the RUSD funding, CKB capacity and fees, then wait for their hosted channel to become ready. They can subsequently fund their Cashu wallet through Fiber and receive proofs after settlement. This is public-testnet onboarding, not a free funding service.

3. Milestones and mainnet: The $6,000 grant is divided into four $1,500 payments: at project start and after accepted reports at weeks 4, 8 and 12. Deliverables progress from settlement reliability and recovery to hosted-LSP onboarding, followed by the versioned package, independent deployment, reliability testing and Community Market pilot. Reviewers receive at least seven days per report.

Mainnet is limited to an operator-funded, gated direct-channel validation: 10 reconciled operations, maximum 5 RUSD per operation and 50 RUSD total live liability. It proceeds only if the verification, testnet and incident-plan requirements are met. No public mainnet mint or LSP is included.

The testnet mint is live at https://mint.fibernuts.xyz.

I will ping you when it’s about time. Thanks

1 Like

Thank you for the continued support, FiberNuts is now ready for voting, all members who have DAO deposit should kindly vote yes to help push the proposal forward.

@Yeti @joshyates1980 @janx @Ophiuchus

LINK TO VOTE: https://dao.ckb.community/thread/vot-fibernuts-reliable-cashu-over-fiber-payments-with-hosted-lsp-onboarding-81525

Thank you :folded_hands:

3 Likes

Gm @zz_tovarishch please can you update the metaforo success in this thread?.

Thank you.

1 Like

Based on the Metaforo tally at close, the outcome is Passed. Approval is 100% against the required 51%, with total voting weight of 184,949,817 CKB against the minimum 15,339,253 CKB.

Post-close verification has been completed using CKB DAO Watchdog, together with a manual sanity check. Sixteen of the eighteen voters matched directly. The two flagged discrepancies were explained by withdrawals after the votes were cast: PSB withdrew 60,000 CKB after the last recorded vote in this poll, and Code3ks initiated withdrawal of 102,000 CKB after the poll closed. Both recorded weights were backed by DAO deposits when the votes were cast. These checks found no evidence of inflated or double-counted voting weight.

The FiberNuts proposal is confirmed as PASSED.

Verification logs: ckb-dao-watchdog/Verification Logs - FiberNuts at main · kydchen/ckb-dao-watchdog · GitHub

3 Likes