Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
paragonie-security committed Jul 18, 2021
1 parent 1c2f4a1 commit 021c2de
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ $ecc = new EasyECC();
$alice_sk = $ecc->generatePrivateKey();
$alice_pk = $alice_sk->getPublicKey();

// Signing a message:
// Signing a message (with PEM-formatted signatures):
$message = 'This is extremely simple to use correctly.';
$signature = $ecc->sign($message, $alice_sk);

Expand Down Expand Up @@ -95,9 +95,7 @@ $alice_pk_pem = $alice_pk->exportPem();
// Serialize public key as compressed point (for brevity):
$alice_pk_cpt = $alice_pk->toString();

// Signing a message (with PEM-formatted signatures):
$message = 'This is extremely simple to use correctly.';

// Signing a message (with IEEE-P1363-formatted signatures):
$signature = $ecc->sign($message, $alice_sk, true);
if (!$ecc->verify($message, $alice_pk, $signature, true)) {
Expand Down

0 comments on commit 021c2de

Please sign in to comment.