Skip to content

feat(evm): driver skeleton, StateDelta, keys and EIP-712#1853

Merged
adecaro merged 2 commits into
LFDT-Panurus:feature/evm-network-driverfrom
atharrva01:evm-core
Jul 7, 2026
Merged

feat(evm): driver skeleton, StateDelta, keys and EIP-712#1853
adecaro merged 2 commits into
LFDT-Panurus:feature/evm-network-driverfrom
atharrva01:evm-core

Conversation

@atharrva01

@atharrva01 atharrva01 commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Second part of the EVM driver, on top of #1850.

This adds the driver skeleton and the core data model. The driver registers and routes fine, but the methods are still no-ops on purpose. The goal here is just to lock down the shapes everything else builds on before I start on the contracts and the translator.

What's in it:

  • a no-op driver.Network with the EVMClient interface, and the evmdlog SDK module that wires it in
  • the StateDelta and the bytes32 key derivations. For graph-revealing spends the reference binds the token content (OutputSNMarker), same idea as Fabric's CreateOutputSNKey. Without it a stateless validator would let someone present forged bytes at a real (txid, index)
  • the EIP-712 domain, hashStruct and digest for the StateDelta, cross-checked against ethers so we know it matches what a wallet would sign

No contracts, translator, signer, endorsement or finality yet, those come in follow-ups.

Stacked on #1850, so the two commits to look at are the top ones. go-ethereum stays out, with a build guard to keep it that way.

@AkramBitar AkramBitar added the enhancement New feature or request label Jul 6, 2026
@AkramBitar AkramBitar added this to the Q3/26 milestone Jul 6, 2026
@AkramBitar AkramBitar requested review from AkramBitar and adecaro July 6, 2026 11:36
driver.Network stub with config-based routing and the EVMClient interface. Adds go.mod so the driver is its own module and the rest of the token-sdk does not depend on it (per @adecaro).

Signed-off-by: atharrva01 <atharvaborade568@gmail.com>
One-list StateDelta; keccak bytes32 derivations incl. content-bound OutputSNMarker; EIP-712 digest, ethers-validated. Golden vectors + fixture locked.

Signed-off-by: atharrva01 <atharvaborade568@gmail.com>
@adecaro adecaro merged commit 5a6fa6f into LFDT-Panurus:feature/evm-network-driver Jul 7, 2026
1 check passed
atharrva01 added a commit to atharrva01/panurus that referenced this pull request Jul 9, 2026
Working branch was rebuilt on the merged upstream (post LFDT-Panurus#1850/LFDT-Panurus#1853). Restores our finalized design doc, implementation plan (Week 2 updated for the snMarker fix and new digest) and plan.md tracker, none of which are meant to be upstreamed.

Signed-off-by: atharrva01 <atharvaborade568@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants