CRYPTO NEWS

Binance crypto exchange outage sparks outrage as traders lose millions

Binance’s policy allows investors to get compensation on trading losses due to system or internal issues but does not cover the “what could have been” situations.

solidity cannot verify ethers.js signed data

I have a simple contract which recover the signature signer signing: console.log(signer.address) const encoded = abiCoder.encode([ "uint" ], [ 1234 ]); console.log(encoded) const signature = await signer.signMessage(arrayify(encoded)); const { r, s, v } = splitSignature(signature) console.log(v) console.log(r) console.log(s) recover signer: function recover(uint256 amount, uint8 v, bytes32 r, bytes32 s) view external returns(address signer){ bytes32 hash::Listen

I have a simple contract which recover the signature signer

signing:

    console.log(signer.address)     const encoded = abiCoder.encode([ "uint" ], [ 1234 ]);     console.log(encoded)     const signature = await signer.signMessage(arrayify(encoded));     const { r, s, v } = splitSignature(signature)       console.log(v)     console.log(r)     console.log(s) 

recover signer:

function recover(uint256 amount, uint8 v, bytes32 r, bytes32 s) view external returns(address signer){          bytes32 hash =  keccak256(abi.encodePacked(amount));         bytes32 signedHash = keccak256(abi.encodePacked("x19Ethereum Signed Message:n32",hash));         signer = ecrecover(signedHash, v, r, s);  } 

but somehow I cannot recover the actual signer.

Binance crypto exchange outage sparks outrage as traders lose millions

Shopping cart
There are no products in the cart!
Continue shopping
0