Skip to content

Commit

Permalink
breaking changes in jk, upgrade to 1.21.0
Browse files Browse the repository at this point in the history
Box.pubIdx was removed (it's internal property and should
not have been used in the first place).
  • Loading branch information
muromec committed Sep 21, 2023
1 parent 9ad3c9d commit ea5a540
Show file tree
Hide file tree
Showing 3 changed files with 3,629 additions and 14,228 deletions.
6 changes: 2 additions & 4 deletions lib/frame/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,10 @@ var start = function (opts) {
try {
box.load({ password: decodeStr(contents.password), keyBuffers: args });

const keys = Object.values(box.pubIdx)
.filter((part) => part.priv)
const keys = Object.values(box.keys)
.map((part) => {
const pub = part.priv.pub();
return {
keyid: pub.keyid(box.algo).toString("hex"),
keyid: part.keyid,
contents: part.priv.to_pem(),
};
});
Expand Down
Loading

0 comments on commit ea5a540

Please sign in to comment.