CRYPTO NEWS

BREAKING: ProShares follows Valkyrie in approval for listing Bitcoin Strategy ETF

Bloomberg analyst James Seyffart reported that the crypto futures ETF would be listed with the ticker symbol BITO, possibly as early as Oct. 18.

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.

BREAKING: ProShares follows Valkyrie in approval for listing Bitcoin Strategy ETF

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