Instant, untraceable payments for Cardano.
µgraph is a payment layer for Cardano. A server, the delegate, holds Cardano funds in a script address, the vault. In exchange, it gives users bearer tokens, the notes. Users pay each other with notes, and a payment settles in one request to the delegate, not in a block.
The delegate signs notes with blind signatures. Thus, the delegate can check that a note is valid. But it can not link a note that it receives to the user who got it. The delegate sees only the asset and the amount.
Status: Version 1.0 is for the Cardano test networks (preprod and preview). It did not have an external security audit. Do not use it with real funds.
Few people use cryptocurrencies to buy goods. We think that three problems stop them:
- Speed. A card payment confirms in about two seconds. A Cardano block takes about 20 seconds.
- Privacy. A payment on a public chain shows the payer, the payee and the amount to all observers.
- Ease of use. Users do not want to manage many keys, channels, or protocols to pay for a coffee.
µgraph addresses these problems with Chaumian e-cash on top of Cardano. The whitepaper explains the design and its costs.
- Deposit. A user sends ADA to the vault. The delegate signs notes of the same value.
- Pay. The user gives notes to another user, for example as a text message.
- Refresh. The receiver swaps the notes for new notes at the delegate. Now only the receiver knows them.
- Withdraw. A user burns notes, and the delegate signs a Cardano transaction that pays the user from the vault.
Each note has one key for its asset and its amount. Thus, a user can not get a signature for more value than they pay. The vault validator lets only the delegate spend the vault.
| Document | Content |
|---|---|
| Protocol specification | The exact rules of the protocol, version 1.0 |
| Whitepaper | The design, the reasons for it, and the security analysis |
| Implementation guide | The code, the build, the tests, and how to run a node |
| User guide | How to use the wallet |
| Cryptography | The blind signatures and the proofs, step by step |
| API reference | The RPC methods of a node (OpenAPI) |
| Cross-node specifications | The extension for payments between delegates |
Enter the development shell (Nix):
nix developRun all tests:
cargo test --workspace
(cd validator && aiken check)Run a local demonstration with a mock chain, a node, and two wallets:
scripts/demo.sh upRun a node on preprod with Docker:
docker build -t mugraph-node .
docker run -p 9999:9999 -e CARDANO_API_KEY=<Blockfrost key> \
mugraph-node server --addr 0.0.0.0:9999 --secret-key <key>Make the key with mugraph-node generate-key. The implementation guide gives
all the steps and the settings.
| Directory | Content |
|---|---|
core/ |
The shared types and the cryptography |
node/ |
The delegate node |
wallet/ |
The wallet app (Tauri and React) |
validator/ |
The vault validator (Aiken) |
mock-chain/ |
A local Cardano chain for tests |
simulator/ |
A load simulator |
µgraph and all projects under mugraph-payments have two licenses: the
MIT license and the Apache 2.0 license. You
can use the software under either license. If you need an exception, contact
us.
The project logo uses the Berkeley Mono Typeface, under a Developer License.
All graphics that we make have the CC BY 4.0 license. It only requires attribution. If this license is a problem for your use case, contact us.