File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ use kornrunner\Serializer\HexSignatureSerializer;
1818
1919$secp256k1 = new Secp256k1();
2020
21- // return signature contains r and s .
22- // message and privateKey are hex string
21+ // return signature contains r, s and recovery param (v) .
22+ // message and privateKey are hex strings
2323$signature = $secp256k1->sign($message, $privateKey);
2424
2525// get r
@@ -50,11 +50,11 @@ use kornrunner\Secp256k1;
5050
5151$secp256k1 = new Secp256k1();
5252
53- // signature was created from sign method.
54- // hash and publicKey are hex string
53+ // signature was created by sign method
54+ // hash and publicKey are hex strings
5555$isVerified = $secp256k1->verify($hash, $signature, $publicKey);
5656```
5757
5858## License
5959
60- MIT
60+ MIT
You can’t perform that action at this time.
0 commit comments