Specify the burn claim
The first decision is what the proof must establish. A zero token balance is insufficient: it can arise without the required burn. The proof needs the application’s burn record for the relevant locked position, associated with the intended contract state and block state root.
An earlier proof implementation makes this precise. Its storage program derives a mapping slot from a withdrawal identifier and configured mapping location, authenticates the contract account under the supplied Ethereum state root, and verifies the slot under that account’s storage root. It asserts that the recorded position state is Burned.
The program exposes the state root and identifier as public values so a verifier can check the expected position and state. The lifecycle diagram describes the current enclave authorized release; the storage and composition study below concerns that earlier implementation.
Taproot UTXOs · multisig
User burns through a contract
Burn record↔↕Block state root
Ethereum evidenceVerify proof → Sign release
Taproot checks signatures
Enclaves verify the burn proof; Bitcoin checks the signatures that authorize BTC release.
Bind proofs to the same state and position
A storage proof can be valid against a root the recipient never intended to accept. The earlier composition program verifies consensus evidence under an expected program key and obtains a finalized execution state root from its public values. It constructs the storage statement using that root and the original withdrawal identifier.
The storage proof must verify under the expected storage program key for those exact values. Two valid proofs about different roots or positions cannot stand in for one release claim.
Program identity is another boundary. A verification key identifies the proved program; accepting an arbitrary key would let the accepted statement change. Public value encoding and hashing must also agree between producing and verifying programs. Composition requires compatible claims as well as proof bytes.
A shared claim in the earlier proof implementation
Verify consensus evidence
Use the expected consensus verification key to authenticate the consensus public values and obtain the finalized Ethereum execution state root.
finalized root Rexpected consensus keyAuthenticate the account and storage slot
Under root R, verify the configured contract account and its storage root. Derive the required mapping slot from withdrawal identifier I and verify that slot's value.
same root Rsame identifier ICheck the withdrawal condition
The storage program asserts that the recorded state is Burned. Its public statement binds that condition to root R and identifier I.
Burnedstorage statement (R, I)Verify the composed statement
The peg out program constructs the expected storage statement from the consensus root and the original identifier, verifies it under the expected storage key, and commits I.
expected storage keypublic output I
Define how program changes are trusted
Ethereum rules and proof programs can change. In the earlier implementation, verified consensus public values may announce replacement consensus or storage keys. A replacement consensus key continues verification through another consensus proof; a storage key replacement is retained for the final storage check.
These transitions let a verifier recognize a changed program while preserving the chain of accepted state. Authorization of replacement keys remains a protocol decision; recursive verification does not decide which rules deserve trust.
The historical workflow generated SP1 proofs and emitted a snarkjs compatible Groth16 representation. These are compatible layers: program execution proving and downstream proof representation. Documented commands targeted sepolia-mock; BitSNARK destination verification remained TODO. That unfinished destination is distinct from the current enclave verification and signing lifecycle.
Key transitions in the earlier proof implementation
Verify under the expected key
Check that the reported consensus key matches the expected key, then verify the proof and its encoded public values.
expected consensus key AApply authenticated replacements
Verified public values may announce a new consensus key and/or storage key. A new consensus key continues the loop with another consensus proof; the storage key update is retained for the later storage check.
consensus key B → next proofstorage key → final storage checkCompose and encode the peg out proof
Once no further consensus key transition is announced, use the final root and current storage key. Host tooling emits the Groth16 proof and snarkjs compatible public inputs.
final root Ridentifier IHistorical BitSNARK integration boundary
This earlier implementation marks the BitSNARK proof verification step TODO. The enclave signing lifecycle is a separate protocol context.
BitSNARK verification: TODO
Separate verification from spending authority
In the current flow, AWS enclaves check the peg out proof’s burn claim before signing a Bitcoin release. Proof verification supplies Ethereum evidence; signing authorizes a particular Bitcoin spend. Bitcoin validates those signatures under the Taproot policy rather than executing the SP1 verifier in the depicted script.
The interface must connect the verified position, the accepted statement and the transaction being authorized. Quorum size, accepted root policy and replay handling require concrete protocol rules; the diagram does not establish them.
The engineering task is to preserve claim identity across each boundary and make the limits of the evidence explicit. This mechanism and historical implementation study provide an architecture to inspect; they do not establish deployment or an audited end to end release.