Skip to content

Commit 9f08dca

Browse files
authored
Modify keygenerator.js
Re-formats keygenerator.js to "Prettier" standards. Also implements "strict mode."
1 parent 753ce8f commit 9f08dca

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/keygenerator.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use strict';
12
const EC = require('elliptic').ec;
23

34
// You can use any elliptic curve you want
@@ -10,7 +11,13 @@ const privateKey = key.getPrivate('hex');
1011

1112
// Print the keys to the console
1213
console.log();
13-
console.log('Your public key (also your wallet address, freely shareable)\n', publicKey);
14+
console.log(
15+
'Your public key (also your wallet address, freely shareable)\n',
16+
publicKey
17+
);
1418

1519
console.log();
16-
console.log('Your private key (keep this secret! To sign transactions)\n', privateKey);
20+
console.log(
21+
'Your private key (keep this secret! To sign transactions)\n',
22+
privateKey
23+
);

0 commit comments

Comments
 (0)