Skip to content

Commit

Permalink
Remove some traces of the PoS migration
Browse files Browse the repository at this point in the history
  • Loading branch information
sisou committed Nov 21, 2024
1 parent 261f4fe commit af172b2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 42 deletions.
36 changes: 0 additions & 36 deletions src/commonPoW.js

This file was deleted.

4 changes: 1 addition & 3 deletions src/request/sign-staking/SignStaking.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,7 @@ class SignStaking {
return;
}

const powPrivateKey = key.derivePrivateKey(request.keyPath);

const privateKey = Nimiq.PrivateKey.deserialize(powPrivateKey.serialize());
const privateKey = key.derivePrivateKey(request.keyPath);
const keyPair = Nimiq.KeyPair.derive(privateKey);

const results = request.transactions.map(transaction => {
Expand Down
4 changes: 1 addition & 3 deletions src/request/sign-transaction/SignTransaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,7 @@ class SignTransaction {
return;
}

const powPrivateKey = key.derivePrivateKey(request.keyPath);

const privateKey = Nimiq.PrivateKey.deserialize(powPrivateKey.serialize());
const privateKey = key.derivePrivateKey(request.keyPath);
const keyPair = Nimiq.KeyPair.derive(privateKey);

/** @type {Nimiq.Transaction} */
Expand Down

0 comments on commit af172b2

Please sign in to comment.