|
|
|
@ -119,9 +119,9 @@ Recovers the signers address from the signature. |
|
|
|
|
|
|
|
|
|
Recovers the signers `publicKey` from the signature. |
|
|
|
|
```javascript |
|
|
|
|
const signer = EthCrypto.recover( |
|
|
|
|
'0xc04b809d8f33c46ff80c44ba58e866ff0d5..', |
|
|
|
|
EthCrypto.hash.keccak256('foobar') // signed message hash |
|
|
|
|
const signer = EthCrypto.recoverPublicKey( |
|
|
|
|
'0xc04b809d8f33c46ff80c44ba58e866ff0d5..', // signature |
|
|
|
|
EthCrypto.hash.keccak256('foobar') // message hash |
|
|
|
|
); |
|
|
|
|
// > 'bf1cc3154424dc22191941d9f4f50b063a2b663a2337e5548abea633c1d06ece..' |
|
|
|
|
``` |
|
|
|
|