ESSPI: ECDSA/Schnorr Signed Program Input for BitVMX
Sergio Demian Lerner, Martin Jonas, Ariel Futoransky
TL;DR
The paper introduces ESSPI, a method to sign BitVMX program inputs with ECDSA or Schnorr, achieving $1:1$ data expansion and enabling verification of uncompressed inputs such as SPV proofs and STARKs. It embeds signed program inputs in Bitcoin transactions by double-signing the input hash and validating equivalence across a primary and a secondary BitVMX instance, while addressing data availability with two DA schemes (Insertion-Proof SPV-based and Timelock-based). A new Input Check Mode CPU (ICM) accompanies a partitioned execution trace and disagreement-search mechanisms to verify unsigned inputs and detect fraud with minimal on-chain overhead. The envelope-based DA scheme further leverages Taproot and covenants to publish UI data in a tamper-evident, auditable manner, offering a scalable, data-efficient path for BitVMX to handle larger proofs such as STARKs.
Abstract
The BitVM and BitVMX protocols have long relied on inefficient one-time signature (OTS) schemes like Lamport and Winternitz for signing program inputs. These schemes exhibit significant storage overheads, hindering their practical application. This paper introduces ESSPI, an optimized method leveraging ECDSA/Schnorr signatures to sign the BitVMX program input. With Schnorr signatures we achieve an optimal 1:1 data expansion, compared to the current known best ratio of 1:200 based on Winternitz signatures. To accomplish this we introduce 4 innovations to BitVMX: (1) a modification of the BitVMX CPU, adding a challengeable hashing core to it, (2) a new partition-based search to detect fraud during hashing, (3) a new enhanced transaction DAG with added data-carrying transactions with a fraud-verifying smart-contract and (4) a novel timelock-based method for proving data availability to Bitcoin smart contracts. The enhanced BitVMX protocol enables the verification of uncompressed inputs such as SPV proofs, NiPoPoWs, or longer computation integrity proofs, such as STARKs.
