Closed tiankonglan closed 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
I have impl the function and add the unit test; PR: https://github.com/WeLightProject/Web3-dApp-Camp/pull/127
Money: 100 xUSDT
100 xUSDT
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