Understanding ZK-BitLock

Zero-Knowledge Public Key & UTXO Lock Protection — by shahiN Noursalehi

You are here: Home / Workshops / Understanding ZK-BitLock

Introduction

ZK-BitLock protects UTXO-based blockchains against quantum and key-extraction attacks without bloating on-chain storage by cloaking the signer's public key behind a 32-byte SHA-256 lock at rest and verifying spends through a native Zero-Knowledge Proof (ZKP) layer. Instead of revealing a reusable public key when spending coins, each transaction rotates to a fresh one-time session salt (rn) and proves ownership of the underlying private key—whether a quantized Modular Neural Network or a classic secp256k1 ECC keypair—without ever exposing raw keys or neural weights on-chain or in the mempool.

Open Research

1. Select Inner Signature Engine (Cloaked Inside the ZKP Wrapper):


2. Select Zero-Knowledge Proof Engine (Both Shielded Behind 32-Byte SHA-256 UTXO Locks):

Inner Signer: Modular NN (mod 251) | ZKP Engine: ZK-STARK (F_251 Hash) | Unspent UTXO Lock: 32 B | Wire & Permanent On-Chain Proof: ~840 B

1. Offline Wallet Setup (Genesis Lock Generation)

Each wallet generates its private key locally and publishes only a 32-byte offline SHA-256 Genesis Lock (A_0). Alice starts with an empty address (0 balance) while Bob holds genesis utxo_0 (150 coins).

Alice's Private Signer — Empty Balance
Inspect Alice's Private Key Parameters
Not generated yet.
Alice Genesis Address (A_Alice — Public 32B Lock)
Click "Generate Alice (Empty) & Bob Wallets"
Alice Initial Session Salt (r_A,0 — Private)
-
Bob's Private Signer — 150 Balance
Inspect Bob's Private Key Parameters
Not generated yet.
Bob Genesis Address (A_Bob — Public 32B Lock)
-
Bob Initial Session Salt (r_B,0 — Private)
-

2. Public-Balance Independent UTXO Ledger

Alice begins with 0 UTXOs; her address A_Alice receives utxo_1 (100 coins) only after Bob broadcasts tnx_1.

UTXO ID Lock Commitment (Public 32B) Owner Hint Amount State
Initialize wallets to populate genesis UTXO (Bob: 150, Alice: 0).

3. Alice & Bob Multi-Round Transaction Flow

Enter any amount up to a wallet's spendable balance and send coins between Alice, Bob, or Merchant. Once a wallet's balance reaches 0, its controls lock until you click Reset Simulation.

Bob's Outgoing Transfer — 0 coins

Recipient Address Amount to Send (Coins) Latest Bob Tx Digest (x_n)
-
Blinded Signature: the_sign
-
Verification Result
-

Alice's Outgoing Transfer — 0 coins

Recipient Address Amount to Send (Coins) Latest Alice Tx Digest (x_n)
-
Blinded Signature: the_sign
-
Verification Result
-

Full Step-by-Step Protocol Log (Formula → Actual → Output → Scope)

Waiting for wallet generation...

4. Adversarial Lab: Jack's Attack Trace Log

Active Unspent Target UTXO: None (Generate wallets first)

Generate wallets so an unspent UTXO is live on the DAG.

5. Key Takeaways & Engineering Notes

Proof Architecture Core Math Unspent Lock Wire & Permanent On-Chain Proof Post-Quantum Security
ZK-STARK (Prototype / Production) F251 polynomials & SHA-256 32 bytes ~840 B (proto) / 15–45 KB (prod) Full (at rest & in flight)
Standalone Single-Scalar ECC X-only secp256k1 Schnorr 32 bytes 96 bytes (independent DAG verify) At rest (mempool race only)
Block Half-Aggregated ECC (Optional) (Ci, Ri) + shared Sbatch 32 bytes 64.03 bytes/tx (1,000-tx batch) At rest (mempool race only)

6. Related Work & Academic References

No mainstream production blockchain uses a neural network directly as its native transaction signature scheme today; existing networks rely on elliptic curves or standardized lattice/hash signatures, while active research explores retrofitting post-quantum locks onto Bitcoin and securing neural authentication:

Acknowledgments

Special thanks to Gemini (by Google), for its collaborative assistance in formalizing the modular neural network signature architecture, implementing the dual ZK-STARK and Standalone Single-Scalar ECC zero-knowledge verifiers, and building this interactive simulator for the Deep Inside workshop series.