Abstract
Deploying and distributing private smart contracts, confidential L2/Validium state diffs, or permissioned intent payloads across Ethereum’s public P2P and Data Availability (DA) layers currently faces a fundamental metadata bottleneck. Even when contract bytecode or state is symmetrically encrypted, existing Broadcast Encryption (BE) and Attribute-Based Encryption (ABE) schemes require attaching an explicit cleartext header specifying either the authorized recipient indices, covering subsets, or the target access tree.
In this post, we propose an architectural framework based on Stealth Attribute-Based Broadcast Encryption (Stealth ABBE) over BLS12-381 (Zenodo Preprint) for zero-metadata delivery of private contracts and encrypted state on Ethereum. By reformulating broadcast access control as a homomorphic blind Reed–Solomon decoding problem over 𝔽256 using carry-free Base-3 packing in exponential ElGamal ciphertexts (𝔾1 × 𝔾1), Stealth ABBE achieves:
- O(1) Broadcast KEM Size (24.1 KiB amortized): Fits comfortably inside a single EIP-4844 blob (~19% of one 128 KiB blob) regardless of the total participant count N.
- Zero Visible Headers or Revocation Lists (0 Bytes): Access policies, cohort rosters, and revocation states are algebraically absorbed into the non-systematic Reed–Solomon codeword.
- Uniform Noise Indistinguishability (STAC Paradigm): Using explicit inverse isogenies and Elligator Squared over 𝔾1, the entire broadcast frame is statistically indistinguishable from uniform channel noise, defeating mempool/blob Deep Packet Inspection (DPI) and cohort graph analysis.
- Zero-Communication Intra-Epoch Revocation: Compromised nodes or auditors can be evicted instantaneously in O(1) without re-keying active participants.
Motivation: The Metadata Leakage Problem in Private Contract Delivery
Suppose an enterprise consortium, a privacy-preserving rollup (Validium / Plasma), or an institutional DeFi protocol wants to deploy and distribute a private smart contract M (containing proprietary EVM/EOF bytecode, confidential ABI parameters, or zero-knowledge circuit witnesses) to a dynamic cohort of authorized execution nodes, sequencers, or auditors using Ethereum as the settlement and DA layer.
If the broadcaster publishes CM = SymEncκ̂(M) via calldata or EIP-4844 blobs, how do they distribute the ephemeral session key κ̂?
- Naïve Multi-Recipient Encryption: Encrypting κ̂ individually to N recipient public keys scales as O(N) and exposes the exact size and identities/keys of the cohort.
- Classical Broadcast Encryption (NNL, BGW) & Pairing ABBE: While BGW achieves O(1) group elements, it mandates transmitting the exact authorized index set S in plaintext so recipients can compute their decryption product. Similarly, pairing-based ABE schemes expose the access policy tree in cleartext and suffer from brittle Boolean logic.
- Dynamic Revocation Bottlenecks: Evicting a compromised validator or unauthorized node in standard schemes forces either header bloat O(r log(N/r)) or expensive global re-keying.
Goal: We want a broadcaster to post a single, constant-size encrypted blob or transaction payload on Ethereum such that:
- Only nodes whose cryptographically provisioned attributes satisfy a k-out-of-n threshold policy can recover κ̂ and instantiate the private contract M;
- An external observer (MEV searcher, censored relay, or passive chain analyst) sees uniform random bytes with zero cleartext headers, zero visible policies, and zero revocation lists;
- Native Ethereum cryptography (BLS12-381 via EIP-2537) is leveraged throughout.
Core Mechanism: How Stealth ABBE Works on Ethereum
Instead of combinatorial subset trees or explicit pairing access trees, Stealth ABBE embeds access control directly into the error-correcting capacity of a non-systematic Reed–Solomon (RS) code CRS[256, 192, 65]256 over 𝔽256 (rate R = 0.75, unique syndrome decoding radius ℵ = 31 symbol errors).
1. Decentralized Setup (DKG/MPC over BLS12-381)
A decentralized Multi-Authority Federation F (e.g., an L2 committee, EigenLayer AVS, or threshold DAO) executes a Distributed Key Generation (DKG) protocol over BLS12-381 (e : 𝔾1 × 𝔾2 → 𝔾T of prime order ℓ):
- The global master secret α ∈ ℤℓ* is never reconstructed in plaintext; the public encryption key is Ppub = [α]G1 ∈ 𝔾1.
- Each authorized node/participant Uj holds an independent private key SU,j = [skj]G2 and receives an oblivious extraction helper Hj = [α − skj]G2 satisfying the invariant SU,j + Hj = [α]G2 without Key Escrow.
- Each participant is provisioned with a locally stored ElGamal Encrypted Access Code CU,j ∈ (𝔾1 × 𝔾1)Nblk encapsulating their composite masked attribute vector:
Mj = (w ∥ rj) + m ∈ 𝔽256256
where w ∈ 𝔽256128 is a high-weight cohort-isolating blocker (wt(w) > ℵ), rj ∈ 𝔽256128 is the participant’s attribute vector, and m ∈R 𝔽256256 is an information-theoretic one-time blinding pad.
2. Carry-Free Base-3 Packing in 𝔾1
To cancel the masks w and m homomorphically when combining the broadcast ciphertext with CU,j, we need bitwise XOR (𝔽256 addition) inside the exponent of an additively homomorphic ElGamal ciphertext over 𝔾1. Because component-wise ElGamal addition evaluates integer addition modulo ℓ (where binary 1 + 1 = 2 causes carry corruption across bits), we embed η-bit blocks (η = 8, Nblk = 256) using superincreasing Base-3 weights:
Wη(x) = ∑u=1..η xu · 3u−1 ∈ [0, 3η − 1]
When two binary vectors are added in the ElGamal exponent, each ternary digit satisfies γu = xu + yu ∈ {0, 1, 2} < 3. No inter-trit carry ever occurs, and the exact XOR sum is recovered deterministically via Rη(Z) = ((⌊Z / 3u−1⌋ mod 3) mod 2)u=1..η.
3. Monolithic Private Contract Encapsulation & Broadcast:
To deploy or update a private contract M:
- Symmetric Encryption: The broadcaster encrypts the contract bytecode and state: CM = SymEncκ̂(M) and posts an on-chain commitment (e.g., code hash + state root) to an Ethereum registry contract.
- Monolithic KEM Payload Formulation: The broadcaster constructs a 192-byte (1536-bit) payload containing the session key and its cryptographic binding metadata:
κ = κ̂256b ∥ κ̃256b ∥ B512b ∥ σi,128b ∥ Σi,384b ∈ 𝔽256192
- Non-Systematic Reed–Solomon Encoding: κ is encoded via non-systematic RS encoding into a codeword c = EncodeRS(κ) ∈ 𝔽256256, incorporating a δ = 64-byte MDS puncturing defense margin at rate R = 0.75 (192 information bytes + 64 parity bytes) to prevent unauthorized participants from performing matrix inversion from the left 128 bytes.
- Policy Token Masking: The codeword c is algebraically masked with the policy token Ti = (w ∥ pi) + m (where w is the cohort blocker, pi is the target attribute policy, and m is the one-time blinding pad) to yield the blinded broadcast vector:
c′ = c + Ti ∈ 𝔽256256
- Block-by-Block Exponential ElGamal Encryption in 𝔾1: To conceal the vector without metadata bloat, c′ is serialized into bits, partitioned into Nblk = 256 blocks of length η = 8 bits using carry-free Base-3 packing, and encrypted block-by-block using additively homomorphic exponential ElGamal under the global public key Ppub = [α]G1 ∈ 𝔾1 with independent ephemeral scalars:
C(t) = ([rbc(t)]G1, [Wη(c′(t)) mod ℓ]G1 + [rbc(t)]Ppub) ∈ 𝔾1 × 𝔾1
- STAC Outer Layer & Blob Publishing: Each point in 𝔾1 is mapped via explicit constant-time inverse isogenies and Elligator Squared into uniform pairs (u, v) ∈ 𝔽p2 (96 bytes per point). The resulting uniform KEM frame of 24.1 KiB is posted directly to an EIP-4844 blob.
4. Local Extraction & Blind Decoding by Authorized Nodes
Upon fetching the blob, an authorized node Uj:
- Maps the Elligator Squared field elements back to 𝔾1 and homomorphically adds its local Access Code: Ĉj(t) = C(t) + CU,j(t).
- Projects each block into the cyclotomic subgroup 𝔾T ⊂ 𝔽*p12 via bilinear pairing:
e(Ĉj,2(t), G2) · e(Ĉj,1(t), −(SU,j + Hj)) = gTZ(t )
where inversion in 𝔾Φ12(p) ⊂ 𝔽*p12 is a cost-free Frobenius conjugation A−1 = Ap6 = Ā.
- Extracts Z(t) ∈ [0, 13120] in O(1) time using an L1/L2 cache-resident 64-bit Prefix Lookup Table (131.2 KB total) and reconstructs the perturbed codeword:
c″ = c + (0128 ∥ (pi + rj))
Notice that w + w = 0 and m + m = 0 self-annihilate in characteristic 2!
- Executes constant-time Berlekamp–Massey RS decoding. If the attribute discrepancy satisfies wt(pi + rj) ≤ ℵ = 31, Uj recovers κ̂, verifies κ̃ and Σi, and decrypts the private contract M.
Instantaneous O(1) Revocation & Collusion Resistance
How do we revoke a compromised validator or auditor Urev mid-epoch without re-keying everyone else or publishing a revocation list?
- Tier-1 Cover-Free Error-Budget Shifting: Within the 128-byte right-hand attribute vector, M = 48 bytes form a revocation sub-block. Each node Uj is assigned a 16-byte clean window Wj from a cover-free family with pairwise intersection |Wj ∩ Wj′| ≤ 4, and a baseline error weight of τcoh = 27 ≤ 31 populated with non-zero offsets in 𝔽256*. To revoke Urev, the broadcaster perturbs 12 bytes inside Wrev.
- For Urev, the error weight jumps to 27 + 12 = 39 > J(128, 64) = 38 > ℵ = 31, exceeding both the unique decoding radius and the Guruswami–Sudan / Gröbner-basis list-decoding Johnson bound!
- For any active member Uj, at least 8 perturbed bytes fall onto coordinates already in error (ε + δ ≠ 0 in 𝔽256*, adding +0 new errors), so their error weight stays ≤ 27 + 4 = 31 = ℵ.
- Two-Layer Anti-Collusion:
- Even coalitions (T = 2): Target masks w and m self-annihilate when summing two access codes, while adding two access codes to c′ leaves w, m uncancelled (255/256 errors).
- Odd coalitions (T ≥ 3): Summing ≥ 4 ciphertexts in 𝔾1 triggers a Base-3 carry avalanche (3 = 103, 4 = 113), corrupting 256/256 bytes. Even if pairs are decrypted separately into 𝔽256256 and summed, the cover-free revocation sub-block amplifies the residual error weight to ≈ 43.8 > J(128, 64) = 38.
Performance & EIP-4844 Bandwidth Footprint
We implemented and verified the full BLS12-381 pipeline in the Magma Computational Algebra System (Prototype, 10,000 trials):
1. Short-Interval DLP Extraction in 𝔾T ⊂ 𝔽*p12 (η = 8, Z ∈ [0, 13120], 256 Blocks)
| Metric | Variant 1: Direct Full LUT | Variant 2: 64-Bit Prefix LUT (L1/L2 Cache) | Variant 3: Kangaroo (DP) |
|---|---|---|---|
| Stored Table Entries | 13,121 |
13,121 (Collision-free) |
242 (Dmod = 57) |
| Entry Size | 578 B (576B + 2B Index) |
10 B (8B Key + 2B Index) |
578 B (576B + 2B Index) |
| Memory Footprint | 7.58 MB (7.23 MiB) |
131.2 KB (128.1 KiB) |
139.9 KB (136.6 KiB) |
| Memory Reduction | 1.0x (Baseline) |
57.8x smaller |
54.2x smaller |
| Avg. 𝔽p12 Muls / Block | 0 (O(1) Lookup) |
0 (O(1) Prefix Hash) |
112.5 muls |
| Online Time per 256B Frame | 0.0003 sec |
0.0011 sec |
1.290 sec |
2. Network / Blob Transmission Overhead (BLS12-381, CRS[256, 192, 65]256)
| Packet Component | Size | Description |
|---|---|---|
| Single Obfuscated 𝔾1 Point | 96 B |
Signless Elligator Squared preimage (u, v) ∈ 𝔽p2 (2 × 48 B) |
| External Headers / Revocation Lists | 0 B |
κ̃, B, σi, Σi are embedded inside κ ∈ 𝔽256 192 |
| Full KEM Frame (Amortized C1) | 24.1 KiB |
1 shared ephemeral C1 + 256 payload points C2(t) (257 × 96 B) |
| Full KEM Frame (Independent rbc(t)) | 48.0 KiB |
256 independent ElGamal pairs in 𝔾1 × 𝔾1 (512 × 96 B) |
A complete Stealth ABBE key-encapsulation frame takes just 24.1 KiB, leaving over 100 KiB of a single EIP-4844 blob available to carry the symmetrically encrypted contract bytecode CM and initial state diff in the exact same transaction!
Ethereum Use Cases & Discussion Points
- Private Smart Contract Distribution (Enterprise L2s & Validiums): Distributing encrypted EVM/EOF bytecode via EIP-4844 blobs to a dynamic set of execution nodes without revealing cohort size, participant identities, or node revocations on L1.
- Stealth Encrypted Mempools & Intent/Orderflow Broadcast: Broadcasting encrypted intents or solver bundles where only solvers holding specific collateral/reputation attributes can blind-decode the bundle, with zero cleartext metadata for MEV frontrunners.
- Minimal On-Chain Anchor (ERC Interface): An on-chain registry contract only needs to store the 32-byte commitment hash of CM, the current epoch number, and optionally verify ZK proofs of valid execution against the decrypted contract state.
We welcome feedback from the community on standardizing a minimal ERC interface for blob-backed Stealth ABBE contract containers and exploring integration with EIP-2537 precompiles and L2 data availability committees!
Links & Reproducible Artifacts
- Preprint & Open-Source Magma Verification Suite: https://doi.org/10.5281/zenodo.23824328