Skip to content

Repository files navigation

Nunchi

Nunchi SDK

modular blockchain framework adding financial primitives to commonware-based chains

Docs  •  Discord  •  X

Codecov


What this is

The Nunchi SDK is an easy-to-use modular blockchain framework offering financial primitives for commonware-based chains. The core of the framework can be found in the nunchi-coins crate

A chain built with the Nunchi SDK adopts our coin and account model, dkg resharing, and bridging setup. The SDK is handcrafted for the requirements of specialized low-latency finance.

Modules

This repository will contain modules for building public and private blockchains, as well as sequencer systems / rollups.

Blockchain Basics

  • nunchi-coins - defines what a coin and account are
  • nunchi-common - core abstractions for addresses, state db, and runtime
  • nunchi-crypto - core primitives/wrappers around commonware cryptographic primitives
  • nunchi-rpc - core abstractions for modular RPC
  • nunchi-dkg - contains dkg resharing ceremony logic and a consensus engine orchestator
  • nunchi-bridge - bridges state roots from other chains, to verify against
  • nunchi-mempool - simple p2p mempool
  • nunchi-oracle - ingests namespaced, arbitrary data for interpretation by other modules
  • nunchi-chat - allows humans or agents to publish to permanent on-chain public conversations
  • nunchi-factory - wrapper of coins for mass issuance

Network Infrastructure

  • nunchi-authority - provides a proof of authority setup for a chain

  • nunchi-pos - provides a proof of stake security setup for a chain

  • nunchi-narae - local devnet runner

  • nunchi-chain - runtime primitives for generated nunchi chains.

Financial Primitives

  • nunchi-margin - user has BTC + nunchi and doesn't want to sell, and deposits BTC+nunchi and gets a stablecoin. Could be backed by other coins, not just btc and nunchi.
  • nunchi-securities - Non-synthetic perps contracts (delivery of tokenized stock)
  • nunchi-vaults - a module for running vaults composed of many types of capital, traded by an authorised offchain party
  • nunchi-clob - used on the global chain, provides liquidity between local chain tokens
  • nunchi-derivatives - ingests a price feed and creates derivatives products
  • nunchi-stablecoin - a wrapper of coins special for the needs of stablecoins

Chain Examples

Commonware compatibility

This workspace pins commonware-* crates to 2026.7.0.

When upgrading nodes:

  • Do not run mixed commonware versions in the same peer set (marshal coding / ZODA shards and other wire formats are not interchangeable).
  • Mid-sync glue metadata from v2026.5.0 cannot resume after upgrading to v2026.7.0; clear or re-sync any node that crashed mid state-sync before the bump.
  • Fresh joining nodes can enable peer QMDB state sync with state_sync = true. Nunchi's resolver preserves Commonware's standard wire layout while decoding variable-value operations with the chain-wide 512 KiB value bound.

About

financial primitives for commonware chains

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages