Skip to content

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

Open
atharrva01 wants to merge 4 commits into
LFDT-Panurus:feature/evm-network-driverfrom
atharrva01:evm-core
Open

feat(evm): driver skeleton, StateDelta, keys and EIP-712#1853
atharrva01 wants to merge 4 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.

Phase 1.1: package tree, keccak/sha256 helpers, local Address/Hash types, go-ethereum depguard.

Signed-off-by: atharrva01 <atharvaborade568@gmail.com>
Integration module was missing dgraph-io/badger entries added to the main module; restores its build.

Signed-off-by: atharrva01 <atharvaborade568@gmail.com>
driver.Network stub with config-based routing, EVMClient interface, and the evmdlog SDK module (view-only) registering the driver.

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

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant