Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
22388o committed Aug 19, 2024
1 parent 69f39c6 commit f4f198b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/javascript/keygen.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ const {Keys,PrivateKey,PublicKey} = require('bitcoinjs-lib');

const key = new PrivateKey();
const PublicKey = key.toPublicKey();
const Address = publicKey.toAddress();
const keys = Keys.fromPrivateKey(key);
const address = publicKey.toAddress();const keys = Keys.fromPrivateKey(key);
const publicKey = keys.publicKey;
const privateKey = keys.toWIF();

Expand Down

0 comments on commit f4f198b

Please sign in to comment.