Skip to content

Can not get address use hash and signature, got "[libsecp256k1] illegal argument: recid >= 0 && recid <= 3"error. #206

Closed as not planned
@stroyBoard

Description

@stroyBoard

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!

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions