Guides

BitKeelmark protocol

Signatures and encryption

The concern is exposure of public keys used to authorize payments. Bitcoin uses ECDSA and Schnorr signatures on secp256k1. A sufficiently capable quantum computer could derive a private key from its public key using Shor's algorithm. Keys already exposed in outputs could be at risk over long periods; other keys become public when a spend is broadcast and remain exposed while it waits for confirmation. The timeline for such capability is uncertain. See BIP 340 and BIP 360.

BIP 360 proposes P2MR, which removes Taproot's key path and mitigates long-term exposure for script-tree outputs. Protecting the shorter mempool window requires quantum-resistant signatures. BIP 361 proposes migration and eventual retirement of legacy signatures. These are drafts. BIP 324 encrypts peer transport and addresses a different part of the problem. See BIP 360, BIP 361, and BIP 324.

The runnable experiment uses OpenSSL 3.5+ to sign and verify with secp256k1 and ML-DSA-44. It checks that modified messages fail verification. The ML-DSA-44 signature is 2,420 bytes, versus about 70–72 bytes for the experiment's ECDSA DER signature. These are representation sizes; reported latency includes OpenSSL process startup and is only a functional check. See NIST FIPS 204 and OpenSSL ML-DSA.

Plain text
python lab/signatures.py

On Windows, if OpenSSL is bundled with Git but missing from PATH:

PowerShell
$gitRoot = (Get-Command git).Source | Split-Path | Split-Path
py lab/signatures.py --openssl (Join-Path $gitRoot 'usr/bin/openssl.exe')

The private ledger requires both signatures on the same network-bound message. Its address commits to both public keys. See signer format and limitations.

Issuance and reserve

Parameter Model value
Ticker BKMK
Precision 8 decimal places
Initial minimum issuance 300,000,000 BKMK
Mineable reserve 29,700,000,000 BKMK
Total cap 30,000,000,000 BKMK
Issuance schedule 10 eras of 210,000 blocks

The proposed reserve starts with zero circulating BKMK. Spending requires a minimum transaction locktime of 210,000 and three of five signatures. With height-based finality, the earliest eligible block is 210,001. This gives independent custodians time to review the allocation and tolerates two unavailable signers.

The demo holds one regtest BTC. All five keys reside in one local wallet. Run python lab/reserve.py verify site/reserve.json to check the policy and unspent output. Independent custody and recovery testing remain pending.

Genesis records the five custodian addresses. Every node tracks the reserve separately, checks its spending policy, and reconstructs balances during replay. The Bitcoin regtest fixture demonstrates a separate script-based lock. BIP 65

Era weights are integer values 512, 256, …, 1. Issuance at each height is the difference between consecutive cumulative totals. This spreads rounding and reaches the cap exactly at height 2,100,000. Consensus C++ needs sufficiently wide intermediate precision even though the total fits in a 64-bit integer. Check value bounds in transactions, coinbase, wallet, and RPC too. After subsidies end, incentives depend on fees or other services with a defined economic source.

5% work pool

Each block assigns 5% of its subsidy, rounded down, to the work pool. Accepted shares have equal difficulty. Payouts use largest-remainder rounding with address order as the tie-breaker. If no shares are included, the miner receives the pool. See ledger rules.

The miner selects shares. The current proof measures hashing. Rewarding storage, replication or availability requires independently verifiable service receipts and a common scoring rule. The private network charges zero transfer fees.

Ethereum execution

The counter fixture runs two calls against Ethereum Prague runtime bytecode. It stores 7, then 18. The resulting state root appears in private BKMK block 4 and Bitcoin regtest block 108 on the original machine. Use the EVM environment from the project root.

Plain text
python -m lab.app_chain --program lab/counter.json --verify-devnet .local/devnet/chain.sqlite 4
python -m lab.app_chain --program lab/counter.json --verify-height 108

The execution inputs remain off-chain. The signed commitments let an observer compare the replayed result with both ledgers. See application commands.

To recreate the EVM environment, use Python 3.11 or later and the pinned checkout listed in the README.

Plain text
git clone https://github.com/ethereum/execution-specs.git .local/ethereum
git -C .local/ethereum checkout d62ed50ed6ecb6d26e1f918716ca57626b01f81c
python -m venv .local/evm-env
.local/evm-env/Scripts/python -m pip install ./.local/ethereum

On Linux and macOS, replace Scripts/python with bin/python.