App
coinbase / cb-mpc
Coinbase MPC Library
github.com/coinbase/cb-mpcIndexed
What is cb-mpc?
cb-mpc is a native cryptographic library for MPC protocols, intended for application developers who want to secure cryptoasset keys in a decentralized way. It provides building blocks to generate and refresh keyshares, derive supported keys, produce MPC signatures, and support key backup through publicly verifiable encryption (PVE). The protocols are exposed through public APIs and the library is written in C++. To install it, run git clone https://github.com/coinbase/cb-mpc.git and follow the steps below. Its code health is 7.9 out of 10 (Good), ranked #84 of 265 ranked repos. The last commit to cb-mpc was on Jul 12, 2026.
As of commit 3a2f7c2, indexed Jul 17, 2026. What it is comes from a model reading the README; the rest is measured from the source and git history, not from the maintainer.
For agentscb-mpc.md
Repo facts: type, license, health, rank, contributors
| Type | App |
|---|---|
| License | MIT |
| Code health | 7.9 / 10 (Good) |
| Health rank | #84 of 265 ranked repos |
| Last commit | Jul 12, 2026 |
| Bus factor | 1 |
| Size | 351 files, 62,451 lines |
Ask about cb-mpc
Answers come from cb-mpc's README and source, with the files they cite. Two free answers a day without an account.
Install cb-mpc
Commands copied from the README
- 1Clone the cb-mpc repository.
git clone https://github.com/coinbase/cb-mpc.git - 2Move into the cb-mpc folder.
cd cb-mpc - 3Clone the repository and initialize its submodules.
git submodule update --init --recursive - 4Install the full API, which includes internal and low-level functionality. By default only the public API is installed.
scripts/install.sh --mode full - 5Install the public API into a custom prefix.
scripts/install.sh --mode public --prefix /path/to/prefix
Ask about this code in your agent
This connects Repowise to cb-mpc's code. It does not install cb-mpc. To install cb-mpc, use the install steps.
Useful if you want to change or fork cb-mpc: your agent can ask how it is put together and get answers that cite its files.
Explore cb-mpc
- DocumentationModule-by-module documentation, 238 pages.
- ArchitectureDependency graph, layers and third-party dependencies.
- Code healthEvery file's score and the findings behind it.
- CommitsEach commit's effect on code health.
- OverviewEverything else the index found: contributors, decisions, what changed this week.
Code health
Hotspots average 4.7, the place fixes pay off most.
On the leaderboards:#3 of 17 C++ repos
coinbase/cb-mpc FAQ
What is cb-mpc?
cb-mpc is a native C++ cryptographic library for MPC protocols. It gives application developers the building blocks to generate and refresh keyshares, derive supported keys, and produce MPC signatures.
How does cb-mpc work?
cb-mpc implements MPC protocols and exposes them through public APIs, with input validation and safer defaults in the high-level API. Applications integrate their own networking, and peer authentication, storage and access-control policy remain the application's responsibility.
How do I install cb-mpc?
After cloning the repository and running git submodule update --init --recursive, run scripts/install.sh --mode full to install the full API. The default installation includes only the public API. See the install steps
What language is cb-mpc written in?
cb-mpc is written primarily in C++. Its repository also includes shell scripts, a Makefile and a Dockerfile.
How is the cb-mpc code organized?
Public headers are under include, implementation under src/cbmpc, and internal headers under include-internal. Demo programs are in demo-cpp and demo-api, and tests are under tests.
Who is cb-mpc for?
cb-mpc is for developers who want to deploy MPC to secure cryptoasset keys and build their own applications on it. The library is intended for general-purpose use with arbitrary protocol flows.
What license does cb-mpc use?
cb-mpc is released under the MIT license.
About this page
Get a page like this for your own codebase
Repowise built this map of coinbase/cb-mpc from its source and git history. It parses every symbol, draws the dependency graph, scores each file's health from complexity, duplication, coverage and churn, finds hotspots and owners in the history, and writes documentation for every module. Your coding agent reads the same index over MCP, so its answers cite real files.
Free for 2 public repos, with a page like this one. No card. See how Repowise works
Prefer local? pip install repowise && repowise init indexes your own checkout, no account needed. Star Repowise on GitHub
Key features of cb-mpc
- Implements MPC cryptographic protocols and exposes them through public APIs.
- Generates and refreshes keyshares, derives supported keys, and produces MPC signatures.
- Supports key-backup workflows via publicly verifiable encryption (PVE).
- Runs protocols with input validation and safer defaults in the high-level public API.
All 6 featuresFewer features
- Provides a custom networking layer that can be integrated with any networking setup.
- Includes theory documents and detailed specifications for its primitives and protocols.
How coinbase/cb-mpc works
Application code calls the public API, whose headers live under include, while the C++ implementation lives under src/cbmpc. The core of the cryptographic primitives, including big-number and modular arithmetic and elliptic curve adapters, is in src/cbmpc, with files such as src/cbmpc/crypto/base.cpp. src/cbmpc/protocol/mpc_job.cpp orchestrates protocol jobs, and src/cbmpc/protocol/ec_dkg.cpp implements the threshold EC-DKG used for ECDSA-MPC. The full API adds lower-level functionality whose internal headers are under include-internal/cbmpc/internal, and in that case the integrating application takes on more validation responsibility. Runnable examples are in demo-api, such as demo-api/pve/main.cpp, and demo-cpp/basic_primitive/main.cpp, while tests under tests exercise the protocols.
The codebase has 351 files and 5,535 symbols in 9 modules, led by C++, Shell and Dockerfile. Code health is 7.8 out of 10, rated good.
Maintain coinbase/cb-mpc?
Claim this page, add a badge to the README, or re-index it.
Claim this page
Sign in with GitHub and we check that you are an admin or maintainer of coinbase/cb-mpc. Then add a badge to the README that links readers here.
Add a badge to your README
Readers click through to this page and can ask cb-mpc's code a question. A badge also re-indexes the repo every week and marks you as the verified maintainer.
[](https://repowise.dev/repo/coinbase/cb-mpc?src=badge_ask)Paste it at the top of README.md, under the title.
Added it already? Verify to get the mark now instead of tomorrow.
Need HTML or the larger health card? More formatsHide more formats
This badge as HTML
<a href="https://repowise.dev/repo/coinbase/cb-mpc?src=badge_ask"><img src="https://api.repowise.dev/badge/wiki/coinbase/cb-mpc.svg?label=ask" alt="repowise: Ask this codebase"></a>Code health card
The score, its change since the last index, and when it was measured. Follows the reader's light or dark theme.
<a href="https://repowise.dev/repo/coinbase/cb-mpc?src=badge_card"><picture><source media="(prefers-color-scheme: light)" srcset="https://api.repowise.dev/badge/health/coinbase/cb-mpc.svg?style=card&theme=light"><img src="https://api.repowise.dev/badge/health/coinbase/cb-mpc.svg?style=card" alt="repowise code health" width="500" height="168"></picture></a>Repowise maps public repos from their source. Not affiliated with coinbase. What is Repowise?