From 13aad76291cd05de87640f4e5f403a64bc5e31e1 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Mon, 23 Dec 2024 17:21:21 -0500 Subject: [PATCH 1/3] feat: upgrade alloy to v0.8.3 --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 229e07d..cfeb39a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "MIT OR Apache-2.0" [workspace.dependencies] -alloy = { version = "0.7.3", default-features = false } +alloy = { version = "0.8.3", default-features = false } [dependencies] alloy = { workspace = true, features = [ @@ -17,7 +17,7 @@ alloy = { workspace = true, features = [ [dev-dependencies] alloy = { workspace = true, features = ["signer-local"] } -alloy-node-bindings = { git = "https://github.com/alloy-rs/alloy.git", tag = "v0.7.3", default-features = false } +alloy-node-bindings = { git = "https://github.com/alloy-rs/alloy.git", tag = "v0.8.3", default-features = false } regex = { version = "1", default-features = false } tokio = { version = "1", default-features = false, features = [ "process", From 2d215d816ca37f5376236dacf31efb08f547114b Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Tue, 7 Jan 2025 13:52:46 -0500 Subject: [PATCH 2/3] chore: bump to latest alloy --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index cfeb39a..b556652 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "MIT OR Apache-2.0" [workspace.dependencies] -alloy = { version = "0.8.3", default-features = false } +alloy = { version = "0.9.2", default-features = false } [dependencies] alloy = { workspace = true, features = [ From 7ae8aa15f60f8bf5618cb809e757433404f45245 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Tue, 7 Jan 2025 13:52:53 -0500 Subject: [PATCH 3/3] chore: update README --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 999c680..76ab257 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ This crate verifies any Ethereum signature including: - Smart contract wallets with [ERC-1271](https://eips.ethereum.org/EIPS/eip-1271) - Predeploy contract wallets with [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492) +This crate is implemented using a single `eth_call` RPC request, and is described in the [off-chain validation section](https://eips.ethereum.org/EIPS/eip-6492#off-chain-validation) of the ERC-6492 spec. + ## Install ```bash @@ -15,9 +17,13 @@ cargo add erc6492 --git https://github.com/reown-com/erc6492 or ```toml -erc6492 = { git = "https://github.com/reown-com/erc6492.git", version = "0.1.0" } +erc6492 = { git = "https://github.com/reown-com/erc6492.git" } ``` +We recommend pinning to a commit ref to avoid unexpected breaking changes while in v0. + +We will publish to crates.io soon. + ## Usage This crate uses [Alloy](https://github.com/alloy-rs) and requires an RPC provider in order to verify all signature types.