CRYPTO NEWS

Brazilian toddler makes over 6,500% profit on her first Bitcoin holding

A father’s gift of 1 BTC (roughly $915.80) to his newborn daughter back in 2017 is now worth more than $60,000.

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.

Brazilian toddler makes over 6,500% profit on her first Bitcoin holding

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