You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@shamatar I may know what is wrong. My coworker generate this signature use java script web3 method, if I make the signature like: 4d5bc8ffcbc0a1bb7e5f582a1869ac11d235421b54c156da36a4d9ca08cbae5d1e802d33fafa13b2e5efda4aa00a8efd97cc557bbdff62a118a430d2b7c7b41200, I can got the right address, the last two character 1b should minus 27 become 00. When I sign a message ,my java coworker told me the same error, I plus 27 to my signature to fix that error.
Here is my code :
let web3Rinkeby = Web3.InfuraRinkebyWeb3()
let address = try? web3Rinkeby.personal.ecrecover(hash: hash, signature: signature)
hash hex string:
836f4d7315fba68b0f583304b1d2ec79023e55ad858b6751f0933e24fa842410
signature hex string:
4d5bc8ffcbc0a1bb7e5f582a1869ac11d235421b54c156da36a4d9ca08cbae5d1e802d33fafa13b2e5efda4aa00a8efd97cc557bbdff62a118a430d2b7c7b4121b
Is this code right or I should use another method?
I need some help thanks!
The text was updated successfully, but these errors were encountered: