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)

TopicMainnet profile in the code
NetworkADDITION_MAINNET_V1, memory_hard PoW
Height / peers / feesCopy live getinfo only (height may be 0)
Privacyprivacy_claim=opening_not_zk (SHA3-512 opening; node sees trapdoor)
PQ cryptoML-DSA-87 + SHA3-512, pq_mode=strict — not a forever-unbreakable claim
Throughput claimthroughput_claim=none (no invented TPS)

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:


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/):

ModuleRole
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):

  1. Consensus / ledger — UTXO validation, PoW check, emission, retarget (chain.cpp)
  2. P2P — network id in HELLO; mainnet peers rejected if they speak ADDITION_TESTNET_V1
  3. RPC — loopback write on home nodes; public HTTP on the seed (see §8)
  4. 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)

ClaimStatus
Default scheme ML-DSA-87 (pq=), FIPS 204 parameter set via liboqsShipped on mainnet spends
pq_mode=strict, allowed_sig_algs=ml-dsa-87Shipped
Hashing / PoW digests / addresses / privacy openings use SHA3-512Shipped
“Unbreakable forever” / immune to all future cryptanalysisNot claimed
FIPS 140-3 validated cryptographic moduleNot claimed

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:

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_modesha3_opening
privacy_verifiersha3_opening
privacy_claimopening_not_zk
privacy_oktrue (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

Live claim language: claim=opening_not_zk.


5. Consensus and proof of work

5.1 Algorithms

Networkpow_algorithmWork
Mainnet ADDITION_MAINNET_V1memory_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

ParameterValue (code / genesis)
target_block_time_sec20
LWMA difficulty window180 blocks (~1 hour)
Future-timestamp bound300 s (15 blocks × 20 s)
Early blockstarget × 9/10 (harder)
Late blockstarget scaled up, clamped to [min, max]
Mainnet mine deadlinemine_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):


6. Economics

From genesis-mainnet.json, config-mainnet.toml, and mainnet_chain_config():

ParameterValue
max_supply50,000,000 whole units
block_reward4 (20 s blocks)
halving_interval5,681,819 blocks (~3.6 years)
subsidy_floor1 per block until the cap, then 0 (no tail emission)
Schedule4/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
PrecisionWhole 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)
Flagadditiond --mainnet
network_idADDITION_MAINNET_V1
Genesisgenesis-mainnet.json (timestamp 1770000000)
Default data dirdata-mainnet
Home-node write RPC127.0.0.1:8546
Public HTTP (read-only)38546
P2P28546 (seeds <seed>.onion:28546 from seeds-mainnet.txt)
Consensusmemory_hard

Hard rules:

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)

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

  1. 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.
  2. SHA3-512 remains a secure hash for commitments and PoW digests under current public cryptanalysis.
  3. Majority of hashrate under memory-hard PoW (same economic assumption family as Bitcoin PoW — not proven by this paper).
  4. Operators protect ADDITION_PRIVACY_MASTER_KEY, wallet .wal files, and never expose home write RPC beyond loopback.
  5. 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


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 / topicLive truth
network_idFrom live getinfo only
HeightFrom live getinfo only — may be 0
pq_mode / algsstrict / ml-dsa-87 + SHA3-512 (confirm via live fields)
privacy_claimFrom live getinfo (opening is opening_not_zk)
consensus_pathmemory_hard_pow on the mainnet profile
throughput_claimnone
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/.

  1. Read /join/ on the site
  2. Follow docs/MAINNET_RUNBOOK.md in this repository
  3. Set ADDITION_PRIVACY_MASTER_KEY (≥32 characters), build additiond from main, 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