ADDITION Technical Whitepaper
Brand: ADDITION (never “SmartChain”)
Network status: pre-mainnet. The mainnet profile (ADDITION_MAINNET_V1) is implemented but has not launched. Public nodes run the research testnet.
Canonical source: github.com/ADDAddition/ADDITION
Contact: contact@additionblockchain.com
Status: Engineering description of the C++20 node and its configs. Values that can change (height, peers, fees) come only from live getinfo / related RPCs.
This document supersedes the short sketch in docs/WHITE_PAPER.md.
Mainnet profile (implemented, not launched)
| Topic | Mainnet profile in the code |
|---|---|
| Network | ADDITION_MAINNET_V1, memory_hard PoW |
| Height / peers / fees | Copy live getinfo only (height may be 0) |
| Privacy | privacy_claim=opening_not_zk (SHA3-512 opening; node sees trapdoor) |
| PQ crypto | ML-DSA-87 + SHA3-512, pq_mode=strict — not a forever-unbreakable claim |
| Throughput claim | throughput_claim=none (no invented TPS) |
- Mainnet profile
ADDITION_MAINNET_V1: UTXO L1, Tor onion P2P seeds (none published yet), read-only public RPC, wallet spend path with ML-DSA-87 / SHA3-512 /pq_mode=strict - Mainnet PoW
memory_hardat target floor0x000000FFFFFFFFFF - Privacy opening path:
privacy_mint_open/privacy_spend_openlabeledopening_not_zk - Height and monetary fields from live
getinfo/monetary_infoonly
1. Abstract and motivation
ADDITION is a Bitcoin-like Layer 1: a single C++20 daemon (additiond), a UTXO ledger, peer-to-peer gossip, and text/HTTP RPC. The mainnet profile ADDITION_MAINNET_V1 is designed so anyone can join by bootstrapping from published onion seeds, syncing, mining, and using wallet RPCs on their own node (the same model as running bitcoind). Mainnet has not launched yet and no seeds are published.
The design priority is post-quantum signatures at the protocol layer. Spend transactions require ML-DSA-87 (FIPS 204) via liboqs in pq_mode=strict. Hashing and PoW use SHA3-512 (OpenSSL), with mainnet PoW wrapped in a memory-hard scratch (memory_hard).
Motivation in one sentence: keep a familiar UTXO / PoW L1 shape while replacing elliptic-curve signatures with a NIST-standardized lattice signature before large quantum computers become practical against ECDSA/Schnorr.
What this whitepaper does not claim:
- No invented peer counts, TPS, block height, or USD prices
- No Groth16 / SNARK / Bulletproofs / Monero / Zcash privacy
- No public DEX, token sale, or foreign-chain bridge product
- No “SmartChain” branding — the product name is ADDITION only
2. Architecture
The tree is a single canonical C++20 codebase. Major modules for the live product (from docs/ARCHITECTURE.md and src/ / include/addition/):
| Module | Role |
|---|---|
block.* | Block / header data model and hashing helpers |
chain.* | Canonical ledger, UTXO set, block validation, retarget, coinbase |
mempool.* | Pending txs; rejects unsigned / empty-input / duplicate-outpoint junk |
miner.* | Block template + PoW search (memory_hard mainnet) |
crypto.* | ML-DSA-87 (liboqs), SHA3-512, memory-hard head64, address derivation |
rpc_server.* | Trusted TEXT RPC command dispatch |
rpc_access.* / rpc_network_server.* | HTTP /rpc and /jsonrpc, public vs trusted surfaces |
wallet.* / wallet_store.* / wallet_keys.* | Local .wal files, wallet_send, key material |
p2p.* / decentralized_node.* / net_io.* | Handshake, gossip, sync (HELLO / REQBLK / BLKDATA) |
privacy.* | SHA3-512 commitment + nullifier opening (opening_not_zk) |
state_store.* | Persistence helpers for side ledgers |
ai_optimizer.* | Local fee-floor / difficulty-bias heuristics from mempool samples |
Daemon: apps/additiond_main.cpp builds additiond. Persistence: --data-dir/blocks.dat after each accepted block; UTXOs rebuild by replay. Side state (privacy.dat, …) flushes after successful writes and on shutdown.
Layers (conceptual):
- Consensus / ledger — UTXO validation, PoW check, emission, retarget (
chain.cpp) - P2P — network id in HELLO; mainnet peers rejected if they speak
ADDITION_TESTNET_V1 - RPC — loopback write on home nodes; public HTTP on the seed (see §8)
- Privacy notes — SHA3-512 opening side ledger (
privacy.dat)
Build requires liboqs and OpenSSL. Missing liboqs fails the build.
3. Cryptography
3.1 Post-quantum signatures — ML-DSA-87 (FIPS 204)
| Claim | Status |
|---|---|
Default scheme ML-DSA-87 (pq=), FIPS 204 parameter set via liboqs | Shipped on mainnet spends |
pq_mode=strict, allowed_sig_algs=ml-dsa-87 | Shipped |
| Hashing / PoW digests / addresses / privacy openings use SHA3-512 | Shipped |
| “Unbreakable forever” / immune to all future cryptanalysis | Not claimed |
| FIPS 140-3 validated cryptographic module | Not claimed |
- Thread-local
OQS_SIGand parallel batch verify incrypto.cpp - Opt-in SLH-DSA (
slh-dsa-shake-256s) only if this liboqs build canOQS_SIG_sign_with_ctx_strwith a non-empty context; otherwise rejected in strict mode - Any other scheme name is rejected
Strict mode means the node only accepts the allowlisted PQ schemes it can verify. Lattice assumptions can age; operators should track NIST / cryptanalysis guidance over time. PQ here is a grade and posture, not a forever warranty.
3.2 Hashing — SHA3-512
SHA3-512 via OpenSSL is used for:
- Header / PoW digests (mainnet after memory-hard scratch)
- Address derivation
- Privacy commitments / nullifiers
- Various internal digests
3.3 Addresses
address = sha3_512(scheme_id || 0x00 || pubkey_bytes) # 128 hex
Default scheme_id is ml-dsa-87. The raw 2592-byte ML-DSA-87 public key is not the address. Spend paths recompute the hash from the revealed pubkey; a pubkey that does not commit to the address is rejected.
3.4 Self-test
crypto_selftest on the public seed returns a live report. Copy only what the node prints.
4. Privacy model (as shipped)
ADDITION privacy is a SHA3-512 commitment + nullifier opening. The node sees the trapdoor when minting/spending open notes.
Field (from getinfo) | Value |
|---|---|
privacy_mode | sha3_opening |
privacy_verifier | sha3_opening |
privacy_claim | opening_not_zk |
privacy_ok | true (when the process answers) |
Relevant RPCs: privacy_note_prepare, privacy_mint_open, privacy_spend_open. Notes live in a side ledger (privacy.dat), not a native ADD lock into a consensus privacy pool.
Master key: ADDITION_PRIVACY_MASTER_KEY must be at least 32 characters or note writes fail with error: ADDITION_PRIVACY_MASTER_KEY not set or too short (min 32). Mainnet start requires this key (docs/MAINNET_RUNBOOK.md).
What this is NOT
- Not Groth16, Halo2, Bulletproofs, STARKs, or any live ZK circuit
- Not Monero ring signatures or Zcash Sapling/Orchard
- Not “ZK-Shield” or shielded balances on the UTXO set
Live claim language: claim=opening_not_zk.
5. Consensus and proof of work
5.1 Algorithms
| Network | pow_algorithm | Work |
|---|---|---|
Mainnet ADDITION_MAINNET_V1 | memory_hard | ~1 MiB × 16 rounds scratch per attempt (crypto.cpp memory_hard_head64), then SHA3-512 head64 vs target |
Constants verified in include/addition/config.hpp and src/crypto.cpp:
kScratchSize = 1 << 20 // 1 MiB kRounds = 16
Mainnet difficulty floor (initial = min = max): 0x000000FFFFFFFFFF. Smaller target = harder. Check: head64(hash) <= target.
5.2 Timing and retarget
| Parameter | Value (code / genesis) |
|---|---|
target_block_time_sec | 20 |
| LWMA difficulty window | 180 blocks (~1 hour) |
| Future-timestamp bound | 300 s (15 blocks × 20 s) |
| Early blocks | target × 9/10 (harder) |
| Late blocks | target scaled up, clamped to [min, max] |
| Mainnet mine deadline | mine_deadline_sec=0 (search until found) |
Because mainnet clamps min and max to the same hard floor, retarget cannot climb to an easy testnet-style target.
5.3 Auto-mine
auto_mine is refused on mainnet (src/auto_mine.cpp). Live getinfo reports auto_mine=off. Config enable_auto_mine = false in config-mainnet.toml does not override that refusal.
5.4 Coinbase and hybrid PoW/PoS
Consensus implements hybrid PoW/PoS (tickets on chain). On mainnet, staking activates at height 14,772,727, the first block at which cumulative emission reaches 37,500,000 ADD (3/4 of the 50M cap): 22,727,272 from the 4/block era (heights 1–5,681,818), +11,363,638 from the 2/block era (to height 11,363,637, total 34,090,910), then 3,409,090 blocks at 1/block. At 20 s blocks that is about 9.36 years after genesis. Before that height the coinbase is 100% to the finding miner; from it on, 30% of each block's reward plus fees goes to the approving stakers.
When active (regtest/testnet configs can enable it):
- Tickets: a stake-lock tx sends ≥
stake_min_amount(default 1000) to@stake; it becomes a ticket afterstake_maturityblocks (mainnet 768 ≈ 4.3 h). - Selection: for block *h*, 5 tickets are chosen deterministically from the hash of block *h−1*. Each signs an ML-DSA-87 vote on *h−1*; votes relay over P2P (
SVOTE) and miners include them (block payloadBLB3). - Quorum: a block needs 3 approving votes once at least
stake_min_live_ticketstickets are live. - Reward split: 30% of the block subsidy+fees is split equally among the approving voters in the coinbase; the miner gets the rest.
- Slashing: two conflicting votes from one ticket at the same height (equivocation) are evidence; including it burns the ticket. Missed votes are not penalized.
- Unbonding: a stake-unlock tx returns funds, frozen for
stake_unbond_delayblocks (mainnet 4320 ≈ 1 day). - Keys stay local: the wallet signs
stake/unstake/votes locally; RPC never accepts a raw private key.
6. Economics
From genesis-mainnet.json, config-mainnet.toml, and mainnet_chain_config():
| Parameter | Value |
|---|---|
max_supply | 50,000,000 whole units |
block_reward | 4 (20 s blocks) |
halving_interval | 5,681,819 blocks (~3.6 years) |
subsidy_floor | 1 per block until the cap, then 0 (no tail emission) |
| Schedule | 4/block (heights 1–5,681,819), 2/block (to 11,363,638), then 1/block until exactly 50,000,000 at height 27,272,727 (~17.3 years); 99% by height ~26.77M (~17.0 years) |
min_fee (spec / genesis) | 0 |
| Precision | Whole integers only — no 8-decimal satoshi subunit |
Coinbase: while staking is dormant, 100% of the block reward (plus collected fees, subject to validation) goes to the finding miner’s address. Supply is hard-capped at 50,000,000; no subsidy is minted past it. No token sale, no pre-mine claim in genesis beyond the empty height-0 chain, no ICO language.
Fees: Spec / genesis / mainnet_chain_config() floor is min_fee=0. Congestion heuristics may raise recommended_min_fee / dynamic_min_fee from mempool size and last-block fees. Copy live fields from the node; do not invent a fee market narrative.
Live monetary_info — fetched on this page (fail closed → RPC offline):
Loading live monetary_info…
7. Networks and ports
Mainnet profile:
| Mainnet profile (not launched) | |
|---|---|
| Flag | additiond --mainnet |
network_id | ADDITION_MAINNET_V1 |
| Genesis | genesis-mainnet.json (timestamp 1770000000) |
| Default data dir | data-mainnet |
| Home-node write RPC | 127.0.0.1:8546 |
| Public HTTP (read-only) | 38546 |
| P2P | 28546 (seeds <seed>.onion:28546 from seeds-mainnet.txt) |
| Consensus | memory_hard |
Hard rules:
- Home write RPC binds
127.0.0.1:8546— never public bind / never0.0.0.0 - Never publish
8545/8546 - Mixing another network’s
blocks.datinto a mainnet--data-diris refused - Seed operators set
ADDITION_ADVERTISED_P2P=<seed>.onion:28546so publicgetinfo/peersadvertise that IPv4 endpoint and do not listself
A separate testnet profile (ADDITION_TESTNET_V1, ports 28545 / 38545) exists in the same binary for operators; it is what public nodes run today. See /join/.
8. Public RPC
Site proxy: /api/rpc (Cloudflare Worker → PUBLIC_RPC_HTTP)
Read path (stock allowlist in rpc_access.cpp is_public_read_command): getinfo, monetary_info, crypto_selftest, tx_status, peers, getblock, getblockhash, getblockraw.
Every other command (wallet, mining, send, signing) is refused on the public port and only answers on loopback (127.0.0.1:8546 mainnet profile / 8545 testnet) on your own node. The site wallet talks only to /local-rpc on loopback.
Example:
curl -s 'http://127.0.0.1:38545/rpc?cmd=getinfo' # testnet node with --public-rpc
9. Wallet and transactions
9.1 Wallet and spends (on your own node)
createwallet [name] [scheme]— default ML-DSA-87; keys indata/wallets/<name>.wal(priv_printed=0)wallet_send <name> <to> <amount> [fee]— node signs from the.wal; no privkey on the wiretx_build+sendtx_signed*— build unsigned spend, sign off-wire, submit PQ signature- Legacy
sendtxwith privkey on the line stays disabled unlessADDITION_ALLOW_INSECURE_TX_COMMANDS=1(leave unset) - Standalone CLI:
web/addition_wallet.py(keys on caller disk)
Site UI: /wallet/. It talks only to your own node over loopback (/local-rpc).
9.2 What is out of scope
Loopback-only token / KV / swap / bridge operators tools may exist next to a home node. They are not a public DEX, Uniswap fork, mainnet token sale, or live cross-chain bridge. Do not invent liquidity, TVL, listing prices, or foreign-chain custody.
10. Security assumptions and threat model
Assumptions
- ML-DSA-87 remains hard against classical and near-term quantum adversaries at the parameter set shipped by liboqs for FIPS 204 level used here — not a forever-unbreakable claim.
- SHA3-512 remains a secure hash for commitments and PoW digests under current public cryptanalysis.
- Majority of hashrate under memory-hard PoW (same economic assumption family as Bitcoin PoW — not proven by this paper).
- Operators protect
ADDITION_PRIVACY_MASTER_KEY, wallet.walfiles, and never expose home write RPC beyond loopback. - The public RPC is read-only (
is_public_read_command). Anyone who can reach a node's loopback write RPC controls its wallets, so it must never be exposed.
Threat model — what privacy is NOT
An observer with node access or the master key can open commitments. This is not zero-knowledge privacy against the verifying node. Do not market it as Zcash/Monero-equivalent.
Other explicit non-goals
- Not FIPS 140-3 validated module
- Not immune to every future cryptanalytic break
- Not a Solana-scale (or any invented) TPS claim on live mainnet
- Live
getinfomay reporteconomic_security=none— that field is copied from the node, not upgraded in marketing copy
11. Live network fields
Live public getinfo (fetched via /api/rpc from the site's read-only node; check network_id in the answer; height and peers change, no canned numbers). Prefer /status/ for the full panel.
Loading live getinfo…
| Field / topic | Live truth |
|---|---|
network_id | From live getinfo only |
| Height | From live getinfo only — may be 0 |
pq_mode / algs | strict / ml-dsa-87 + SHA3-512 (confirm via live fields) |
privacy_claim | From live getinfo (opening is opening_not_zk) |
consensus_path | memory_hard_pow on the mainnet profile |
throughput_claim | none |
peers=… | Live query only — not a permanent marketing number |
No USD ticker (price_usd stays null on the site API).
12. How to join (after launch)
Mainnet has not launched and seeds-mainnet.txt is still empty, so these steps are the planned procedure. Today, use the testnet on /join/.
- Read /join/ on the site
- Follow
docs/MAINNET_RUNBOOK.mdin this repository - Set
ADDITION_PRIVACY_MASTER_KEY(≥32 characters), buildadditiondfrommain, then:
export ADDITION_PRIVACY_MASTER_KEY='replace-with-32-or-more-chars____' export ADDITION_ENABLE_P2P_RPC=1 ./build/additiond --mainnet \ --data-dir $HOME/addition-mainnet \ --local-rpc-port 8546 \ --p2p-port 28547 \ --bootstrap <seed>.onion:28546 # sync, then getinfo; mine on your own 127.0.0.1:8546
Never publish port 8546. Auto-mine stays off on mainnet.
13. Contact
Email: contact@additionblockchain.com
MIT-licensed software. This whitepaper is engineering documentation, not an audit certificate, not investment advice, and not a token-sale prospectus.
*Sources: include/addition/config.hpp, src/crypto.cpp, src/chain.cpp, src/privacy.cpp, src/auto_mine.cpp, src/rpc_access.cpp, src/rpc_server.cpp, genesis-mainnet.json, config-mainnet.toml, docs/MAINNET_RUNBOOK.md, docs/ARCHITECTURE.md, docs/WALLET.md, docs/ONION_SEEDS.md.*
Source file in the repository: docs/whitepaper.md