Skip to content

Proposal: Use eth.zig for RLP decoding and extended type support #3

@koko1123

Description

@koko1123

Hi! I'm the maintainer of eth.zig, a pure Zig Ethereum library.

I noticed web3.zig has a great foundation but is missing a few things that eth.zig already implements:

  • RLP decoding - web3.zig currently only has RLP encoding; eth.zig has full encode + decode
  • ERC-20/ERC-721 typed wrappers - comptime function selectors and event topics
  • HD wallet derivation (BIP-32/39/44)
  • EIP-712 typed data signing

I'd love to explore whether it makes sense to share code between our projects, either:

  1. eth.zig as an optional dependency for the missing pieces
  2. Upstream contributions from eth.zig's implementations

The main compatibility consideration is that eth.zig currently targets Zig 0.15.2, while web3.zig targets 0.14.0. Once web3.zig updates to 0.15, integration would be straightforward.

Happy to discuss what makes sense. Not looking to replace your work -- just share what we've built where it fills gaps.

Repo: https://github.com/StrobeLabs/eth.zig (446 tests, 43 modules, zero dependencies)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions