Skip to content

Commit

Permalink
readme: make the example complete
Browse files Browse the repository at this point in the history
  • Loading branch information
lovato authored and indutny committed Aug 24, 2016
1 parent c53f5cf commit ab93810
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ console.log(key.verify(msg, signature));
### ECDH

```javascript
var ECDH = require('elliptic').ec;
var ec = new ECDH('curve25519');

// Generate keys
var key1 = ec.genKeyPair();
var key2 = ec.genKeyPair();
Expand Down

0 comments on commit ab93810

Please sign in to comment.