Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitor Gabriel authored and Vitor Gabriel committed Mar 12, 2019
1 parent 1723bbc commit 388a846
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ public class GenerateKeys{

public static void main(String[] args){
// Generate Keys
PrivateKey pvtKey = new PrivateKey();
PublicKey publicKey = pvtKey.publicKey();
PrivateKey privateKey = new PrivateKey();
PublicKey publicKey = privateKey.publicKey();

String message = "Testing message";
// Generate Signature
Signature signature = Ecdsa.sign(message, pvtKey);
Signature signature = Ecdsa.sign(message, privateKey);

// Verify if signature is valid
boolean verified = Ecdsa.verify(message, signature, publicKey) ;
Expand Down

0 comments on commit 388a846

Please sign in to comment.