Skip to content

How to verify Ethereum `personal_sign` EIP-191 and `eth_signTypedData_v4` EIP-712 in NEAR Protocol with Rust?

License

Notifications You must be signed in to change notification settings

dapplets/verify-eth-signature-on-near

 
 

Repository files navigation

How to verify Ethereum personal_sign in NEAR Protocol with Rust?

Answer: use env::ecrecover function

Example at contract/src/lib.rs

Test at integration-tests/src/main.ava.ts

npm i
npm run test:integration

About

How to verify Ethereum `personal_sign` EIP-191 and `eth_signTypedData_v4` EIP-712 in NEAR Protocol with Rust?

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • TypeScript 49.3%
  • Rust 33.4%
  • Solidity 14.6%
  • Shell 1.4%
  • JavaScript 1.3%