graph-tooling icon indicating copy to clipboard operation
graph-tooling copied to clipboard

Add `crypto.ecrecover` for ethereum signature verification

Open ziegfried opened this issue 6 years ago • 2 comments

Feature request

There is currently no (easy) way to verify a signature that was created via Ethereum's eth_sign.

Please add the means to verify the elliptic curve signature created in a dapp or an ethereum smart contract. Ideally add a crypto.ecrecover function (or similar) to the graph-ts API.

This would be useful when processing data from dapps like Peepeth, where user-signed actions are stored in IPFS in batches.

While it should be possible to build this assemblyscript, it's likely a lot of work 😇and possibly not as efficient compared to a host export.

ziegfried avatar May 21 '19 07:05 ziegfried

It looks like we could depend on https://github.com/ewasm/ewasm-precompiles/blob/36dce2e652cc0687bbd5ecff7d74c7e39e8fb914/ecrecover/src/lib.rs#L20 to provide this method.

Jannis avatar May 23 '19 23:05 Jannis

Any progress on this? ecrecover is pretty essential

hbriese avatar Oct 12 '21 21:10 hbriese