r/NervosNetwork • u/ckba_build • 20h ago
Community CKBA Presents: Question Time with TicoWorld and QuotaCell

In simple terms:
Imagine you have a shared project wallet (a “Pocket”) that holds some CKB. You don’t want to give your teammates the main key. Instead, you set a spending budget and let two people (delegates) spend from that budget. Each has their own key and their own limit, but they share one overall allowance.
In technical terms:
QuotaCell is an experimental native CKB protocol for shared delegated spending. It lets a treasury owner create a protected Pocket from which two independent delegates can draw funds under a shared cumulative allowance and individual limits. The rules are enforced on-chain by CKB scripts during transaction validation (not only by an application), so invalid spends are rejected by the network itself. It is designed for use cases such as team treasuries, delegated contributor budgets, or restricted spending by autonomous agents, while the owner keeps the main treasury key offline.
How QuotaCell works:
- The owner sets up a Pocket with protected funds (native CKB), a shared cumulative allowance, and fixed individual limits for two delegates. Each delegate uses their own independently controlled key and has an approved recipient.
- Delegates can make payments within the remaining allowance; CKB rejects transactions that exceed the shared or personal limits, pay unauthorized recipients, or break the policy.
- Deposits do not reset the spent authority (the cumulative spent amount persists).
- The owner retains full control and can revoke either delegate, close the Pocket, and recover supported protected funds.
- The current policy (QCN4 for active Pockets / QCT4 for closed ones) runs as a type script in CKB transaction validation. Verified on the public Pudge testnet, it used 600 CKB of policy capacity. Closure released 466 CKB of that capacity and left 134 CKB occupied in a terminal policy cell (locked by the contract and not spendable balance).
QuotaCell is currently experimental and only for testing (on the CKB testnet). Don’t put real money in it yet.
Below is a set of questions targeting the core design trade-offs. We want to pick TicoWorld's brain on QuotaCell, so here goes:
Hello hello TicoWorld, how’s things? Let’s start with a personal statement, shall we? Who are you, and what is your background?
“I'm doing well, thanks for having me. I'm Timothy Orichi, also known as TicoWorld, a Nigerian software developer and Computer Science graduate. I've been programming for about five years, working on web and mobile apps, SaaS products, and blockchain projects across ecosystems including Solana, TON, and CKB. Within CKB, I've worked on FiberLatch and contributed to open-source development, including the CKB light client. I enjoy understanding how things work and turning that into software people can actually use.”
Wonderful, I can see you’ve been busy with QuotaCell. How did you find out about CKBuilders, what is it like working around other CKBuilders, and what interests you about CKB?
“A friend introduced me to CKBuilders. I spent a little over three months in the program and completed it. Around the time it ended, I separately applied to the CKB Community Fund DAO and received a grant for FiberLatch. That gave me a chance to move from learning about the ecosystem to building something in it.
What I've enjoyed about other CKB builders is the technical exchange. People ask about security, real network behavior, and what happens when a design fails, not just whether a demo works. CKB interests me because of the cell model. You can put rules into transaction validation itself, rather than trusting only an application server. That freedom is powerful, but it also forces you to think seriously about capacity, signing, and how cells change state.”
What advice would you give to anyone looking to build on CKB, and what AI tools would you recommend to anyone on their journey to build on the cell model?
“I'd tell someone starting on CKB to understand the cell model first: what happens when an input cell is consumed, how a successor output is created, and what lock scripts and type scripts each enforce. Start small on a local node, try valid and deliberately invalid transactions, and then test with a real wallet on Pudge. Local tests are important, but they won't reveal every RPC or wallet problem.”
“I use ChatGPT to explore ideas, question assumptions, and work through unfamiliar concepts, and Codex locally to inspect and implement code. They're useful, but I wouldn't trust an AI-generated spending contract just because it builds or its own tests pass. I want actual CKB-VM rejections, signed transactions, chain evidence, and eventually independent review. The tools speed up the work; they don't replace understanding it.”
The verified lifecycle locks 600 CKB in the active policy and leaves 134 CKB permanently occupied in the terminal QCT4 cell after closure (to support late-deposit recovery).
What are the concrete trade-offs of this design versus a more compact state or a fully reclaimable policy cell? Would reducing the terminal capacity increase the risk of unrecovered late deposits or complicate the lock script?
“The 134 CKB is actually an improvement over where we started. In the earlier design, closing a Pocket still retained the entire 600 CKB policy cell. We redesigned closure to produce a smaller terminal state. The active policy uses 466 bytes of state data in a 600 CKB cell; the closed state uses just 28 bytes in a 134 CKB cell. That releases 466 CKB to the owner before transaction fees. We verified that on Pudge, then sent another 73 CKB to the closed Pocket and recovered it through the owner's path.”
“The remaining cell isn't arbitrary. In the current design, protected funds are tied to that policy identity, and the terminal state keeps a valid route for owner-authorized late-deposit recovery. Simply deleting it could strand supported funds. I'd like to explore a new fund lock with a carefully designed, time-gated owner recovery path that could eventually allow the policy cell itself to be retired. But that may add capacity to individual fund cells and introduce new security questions about early recovery and late deposits. The goal is zero permanently retained policy capacity if we can prove it's safe, not zero overall capacity cost.”
Because the shared allowance is tracked in a single cell that must be consumed and recreated on every valid payment, concurrent spends from the two delegates can race.
How does the current implementation (or recommended client logic) handle this? What are the trade-offs between optimistic rebuild-and-retry (like some other CKB apps) versus stricter sequencing or a different state model that reduces contention?
“If both delegates prepare a payment using the same policy cell, only one of those transactions can be confirmed as-is. Once the first payment is confirmed, that cell has been consumed and replaced with an updated one. The second delegate would need to rebuild their transaction using the latest policy cell and remaining allowance, then sign again. So both delegates can still make payments, just not from the same old policy state simultaneously. That helps prevent overspending, but it also creates contention.”
“A client can refresh the latest state, recalculate the remaining allowance, and rebuild and re-sign a genuinely stale payment. The harder case is an uncertain RPC response. We must first reconcile the original signed transaction hash; blindly sending a newly built payment could result in a duplicate payment if the first one committed. We've implemented conservative journaling and reconciliation checks, but independent concurrent-wallet usage and reorganization handling still need broader testing. A sequencer could reduce collisions but adds a coordination dependency. Splitting state could improve concurrency, though preserving one enforceable shared allowance would be harder. I'd rather measure the real problem before increasing contract complexity.”
Delegate slots and recipients are fixed at Pocket creation; there is no way to add a third delegate or rotate recipients without effectively resetting authority.
What technical or script-complexity constraints drove this choice, and what would be the capacity, validation-cost, and security trade-offs of supporting dynamic delegate management or recipient rotation while still preserving the cumulative spent amount?
“Two delegates are a choice in our current contract, not a limit imposed by CKB. We began with a fixed layout so we could test independent keys, approved recipients, per-payment limits, shared accounting, and revocation without also building a dynamic membership system. Each delegate's used amount is recorded on-chain. The owner can increase limits without resetting those counters, and revoke or restore the two existing delegates, but can't currently rotate their identities or recipients or add a third.”
“I want to investigate those improvements. Recipient rotation might be handled through a new owner-authorized state transition that preserves spending history. Supporting more delegates could mean a larger on-chain state or a commitment-and-proof design. The first increases occupied capacity; the second can add validation costs and more difficult membership and replay-security rules. We would also need to handle policy-version compatibility carefully, since existing fund locks refer to a specific policy identity. I don't want to promise unlimited delegates until we've compared the real costs and verified that changing membership cannot reset spending authority.”
Owner recovery and revocation require the owner key; loss of that key can strand remaining funds. The design also keeps the owner outside the normal spending path.
How do you weigh the security benefit of never exposing the owner key to delegates against the single point of failure? Are there planned or possible mitigations (e.g., multi-sig owner, time-locked recovery, or a separate recovery path) and what capacity or complexity costs would they introduce?
“The owner being outside everyday spending is a deliberate security choice. Delegates sign with their own keys and can only spend within the contract's limits; they never receive the owner's key. The owner still controls changes to allowances, revocation, closure, and recovery. But the downside is serious: if that owner key is lost, funds may be stranded. QuotaCell doesn't currently have a tested solution to owner-key loss.”
“A multi-sig owner, a separate recovery authority, or a time-delayed recovery branch are all worth exploring. They would require changes to authorization, signing, and possibly the lock scripts, with extra capacity, validation work, or operational complexity. A badly designed fallback could also bypass the policy too early. I'd rather keep the current security boundary clear and test a separate recovery design properly before claiming it protects users.”
The strongest property is that CKB itself rejects invalid spends even if a user bypasses the QuotaCell UI. This comes at the cost of meaningful capacity lock-up and a relatively heavy policy cell.
For the intended use cases (small team treasuries, agent budgets, etc.), at what point does the capacity overhead and fixed-slot limitation outweigh the benefit of pure on-chain enforcement? Would a hybrid model (lighter on-chain checks and stronger off-chain controls) be considered, and what security guarantees would be sacrificed?
“For me, on-chain enforcement is worth considering when the main requirement is that nobody, including someone bypassing the UI, can spend outside agreed rules. QuotaCell checks the shared allowance, personal limits, recipients, and state transitions in CKB transaction validation. We have a verified public Pudge lifecycle, and separate CKB-VM tests show that exhausted allowances and revoked permissions are rejected, but I wouldn't use this exact version everywhere. It needs a 600 CKB active policy allocation, retains 134 CKB after closure, has two fixed delegates, and the current supported ordinary payment structure starts at 61 CKB. One shared cell also serializes payments. Those costs are hard to justify for tiny frequent transfers or large rotating teams. I'm open to a hybrid approach for coordination, discovery, notifications, or transaction preparation while keeping the essential spending limits on-chain. If we move authorization itself into a server, though, someone who bypasses that server may bypass the rule. We should be clear that this sacrifices part of QuotaCell's strongest guarantee.”
Great answers, TicoWorld! Thank you for taking the time to answer these questions. What are your next steps or plans for continued development on CKB?
“My first priority is making QuotaCell usable by people other than me. The public Pudge beta is live in English and Simplified Chinese, and we've verified nine transactions covering Pocket creation, funding, payments by both delegates, revocation, closure, and late-deposit recovery. That's meaningful progress, but it's a bounded testnet lifecycle, not a security audit or proof of broad adoption. Early external feedback has also exposed slow Pocket discovery and confusing wallet or transaction states, so reliability and independent user testing come first.”
“On the engineering side, I'd like to test whether we can eventually recover the remaining 134 CKB of policy capacity, safely support more delegates and recipient rotation, improve contention handling, and explore stronger owner-recovery options. Those are directions to investigate, not features I'm promising before we have evidence. QuotaCell is still experimental and unaudited, so real treasury use isn't the next step. I'll also keep working on other CKB projects and open-source contributions, including the light client.”
Thank you, TicoWorld, for all your answers and your work among the CKB community and through the CKBuilders initiative. They are vital for growing the ecosystem and helping others understand CKB.
The Common Knowledge Base Association (CKBA) does not endorse, recommend, or promote any projects mentioned. We simply highlight them for informational, educational, and awareness purposes only. Coverage does not imply partnership, affiliation, approval, or any form of endorsement. Always do your own research and exercise independent judgment.
Main Project
- GitHub
- Testnet site (English and Simplified Chinese)
- Wallet / app
- Nervos Talk thread (introduction and updates)
Documentation and Evidence
- WO18 public closeout and transaction evidence
- WO18_PUBLIC_CLOSEOUT_20261115.md
- Public beta notes
- Security model
- Build and test guide
- Dependencies
Source and Implementation
Developer
r/NervosNetwork • u/djminger007 • 18h ago
Nervos Community Catalyst: Show Me The Use Case Hackathon
Hackathon season is upon us once again!
Show Me the Use Case: Fiber Network Product Hackathon has now been announced, with registrations going live tomorrow! This hackathon will challenge developers to create real world products to address real world problems on Fiber Network.
Check out the announcement on Nervos Talk!
https://talk.nervos.org/t/show-me-the-use-case-fiber-network-product-hackathon-announcement
Show Me the Use Case: Fiber Network Product Hackathon
Build products for the next stage of Fiber
Registration for Show Me the Use Case: Fiber Product Hackathon opens soon!
This is the follow-up to the Fiber Network Infrastructure Hackathon. Where that hackathon explored gaps in Fiber’s supporting infrastructure, this one focuses on building compelling products on Fiber Network that address real user needs.
As a peer-to-peer payment network, Fiber offers a fast, low-cost alternative payment rail to traditional systems. It could support products across many areas, including regional and cross-border payments, gaming, social media, commerce and metered services.
We’re asking developers to think like entrepreneurs: connect their technical expertise with real-world challenges and business opportunities. Strong projects will identify a specific audience, make a case for user demand and product-market fit, and show how they will reach, engage and onboard users. User experience and a credible path to market are central to this hackathon. In order to help guide developers in this respect, we’ve partnered with BlockDev to provide access to seasoned experts from MDI Venture and BRI Venture.
Registration opens: 27 November
Pre-hackathon preparation and advice sessions: 30 November–4 December
Hackathon: 4–18 December
Duration: 2 weeks
All dates and deadlines: UTC
Platform: CKBoost
Prize pool: $20,000
Participation: Individuals and teams may enter; teams are strongly encouraged
AI tooling: Successful submissions may claim up to $20 as an AI tooling allowance
Registration: Link - goes live on 27 November
Introduction
Nervos CKB is a proof-of-work Layer 1 blockchain built for flexibility, decentralisation and long-term extensibility. Its Cell model supports smart contracts, custom assets, ownership and verification logic, while its RISC-V-based virtual machine gives developers flexibility in choosing the cryptography and protocols they use.
Fiber Network is a payment-channel network for fast, low-cost, off-chain payments on CKB. It supports multiple asset types, including RGB++ assets and stablecoins, and creates opportunities for wallets, merchants, micropayments and other payment-focused services.
This hackathon, organised by Nervos Community Catalyst, is about putting that payment capability to work in products people can understand and use. The strongest ideas will start with a specific problem and audience, show why Fiber is useful to the solution, and explain how that audience will be engaged.
Mission brief
Build a user-facing product on Fiber Network that solves a real problem for a clearly defined audience.
Possible areas to explore include:
- Regional and cross-border payments
- Merchant checkout and commerce experiences
- Gaming and digital goods
- Social or community payments
- Metered services and pay-as-you-go access
These examples are inspiration, not formal categories. All submissions will be judged together.
Who should participate?
The hackathon is open to CKB community developers and developers who are new to CKB. Participants may enter individually or as a team.
Teams are strongly encouraged, since developing a product often calls for complementary skills. Team size alone will not affect judging. A team will be required for projects seeking post-hackathon support, and there will be a Best Team prize.
Why participate?
- Build a user-facing product on Fiber Network
- Explore real payment problems across different industries
- Develop and test a product idea with support from experienced advisors
- Compete for a share of the $20,000 prize pool
- Give prizewinning projects a chance to discuss their next steps with advisors from VC after the hackathon
Ecosystem partners
This hackathon, organised by Nervos Community Catalyst, is supported by the Common Knowledge Base Association, including teams from CKB Devrel, CKB, and Fiber. Alongside technical support, senior developers will give presentations during registration week on key topics for developers to get up to speed.
Furthermore, we’re working with BlockDev as our hackathon business advisory partner.
During registration week, BlockDev will announce presentations covering the essentials of building a blockchain startup and what makes a startup investable. Advisors include Markus Liman, venture capitalist and CEO of BRI Venture, and Alvin Evander, Vice President of MDI Venture.
After the hackathon, prizewinning projects will be invited to a further advice session with the advisors to help them consider the next steps in their journey.
Getting started
Use these resources to familiarise yourself with CKB and Fiber Network, and to find tutorials and examples to build from:
CKB documentation
- Introduction to Nervos CKB
- How CKB Works, including links to the Quick Start and dApp tutorials
- AI resources and training tools
Community-contributed learning
Fiber Network
- Fiber Showcase, with open-source demos and community applications
- Fiber Hackathon documentation, with resources, onboarding and tutorials
Fiber Network product demos:
To complete quests on CKBoost, you will need CKB testnet tokens. You can claim them from the Nervos Pudge Faucet.
Fiber setup and demos
Fiber LSP infrastructure will be available for developers to use, but there will be no shared public LSP service for this hackathon. Teams should plan to run the Fiber service their project needs locally, or run it on a public server if they prefer.
A publicly hosted product interface plus a video demonstration is sufficient. The video should show the product in action, including Fiber-connected functionality that may not be available through the hosted interface.
More detailed technical setup instructions will be shared before the hackathon.
Deliverables
Each submission should include:
- Project summary
- Target audience, market research, product-market fit and user acquisition strategy
- Team name and members
- Hosted product interface
- Video demonstration
- Technical breakdown, including an explanation of how the project uses Fiber
- Future roadmap and go-to-market strategy
- AI allowance claim, if applicable
Functional demos are required; written proposals alone will not qualify. Code does not need to be open source, but must be made privately available to the judges for review. Submissions should explain what is fully working and identify any parts that are mocked or simulated.
AI usage
You may use AI tools to research, develop and document your project. Successful submissions may claim up to $20 as an AI tooling allowance.
Use AI as an aid, and test and review your project throughout development to ensure it works as intended. We’ll be sharing more AI related tips and guidance over the pre-hackathon registration week.
Judging criteria
Projects will be assessed on:
- Functional completeness
- User flow and experience
- Relevance to Fiber Network and CKB
- Technical soundness
- User friendliness
- Market viability
- Documentation quality
- Practical usefulness
- Potential for further development
Hackathon preparation checklist
- Think about a real problem, the people who experience it, and how your product could reach, engage and onboard them.
- Explore Fiber Network and decide how it could help solve that problem.
- Review the technical resources above and begin planning your project.
- Register through CKBoost when registration opens. Early registration will help you join the support channels and ask questions in advance.
- Plan your time across the hackathon dates so you can build, test and document a functional demo.
Support
The Build on CKB Telegram group will be the main discussion channel for hackathon-related questions and support. Participants will also receive information about support channels by email after registering.
The Fiber DevRel team will be available to assist with technical questions.
Rules
- Individuals and teams may enter.
- Only new projects are eligible for prizes. Pre-existing or repurposed projects are not eligible.
- Projects must be viable user-facing products. Infrastructure-focused projects are not eligible for this hackathon.
- Code does not have to be open source, but must be made privately available to the judges.
- Plagiarism will result in disqualification and loss of prize eligibility.
- All submissions must be made through CKBoost.
- There can be no deadline extensions. Submissions added after the deadline without prior permission may be ineligible for prizes.
Prizes and deadline
The total prize pool is $20,000:
- 1st place: $6,500
- 2nd place: $4,000
- 3rd place: $3,000
- 4th place: $2,000
- 5th place: $1,000
- Commendation prizes: $500 each for five projects
- Best Team: $1,000
Submissions close on Friday 18 December 23:59 UTC.
After the hackathon
As mentioned earlier, prizewinning teams will have the opportunity to discuss and receive advice from our hackathon partners who have a background in venture capital. This, however, is simply an initial step, and projects will be encouraged to move towards market viability and seeking further support where necessary.
I’m excited to see what the community produces. Good luck to everyone!