NonceGeek / Web3-dApp-Camp

web3.0 dApp Camp Contents!, see in: https://twitter.com/Web3dAppCamp
MIT License
132 stars 38 forks source link

Impl the verify_eth_sig function #126

Closed tiankonglan closed 2 years ago

tiankonglan commented 2 years ago

https://github.com/WeLightProject/Web3-dApp-Camp/blob/main/move-dapp/eth-sig-verifier/sources/EthSigVerifier.move // TODO: impl: // 0x01) recover addr from signature // --- ecrecover(hash: vector, signature: vector) // cond2 = (addr1 == addr2) // 0x02 addr == ecrecover

tiankonglan commented 2 years ago

I have impl the function and add the unit test; PR: https://github.com/WeLightProject/Web3-dApp-Camp/pull/127

leeduckgo commented 2 years ago

Money: 100 xUSDT