Skip to content

Commit

Permalink
Update to OpenPGP.js v6 beta.2
Browse files Browse the repository at this point in the history
  • Loading branch information
larabr committed Jul 5, 2024
1 parent ab2a71c commit bb43e49
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@openpgp/asmcrypto.js": "^3.1.0",
"@openpgp/web-stream-tools": "~0.1.1",
"jsmimeparser": "npm:@protontech/jsmimeparser@^3.0.1",
"openpgp": "npm:@protontech/openpgp@~6.0.0-beta.1"
"openpgp": "npm:@protontech/openpgp@~6.0.0-beta.2"
},
"devDependencies": {
"@types/bn.js": "^5.1.5",
Expand Down
8 changes: 6 additions & 2 deletions test/key/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ describe('key utils', () => {
});

it('sha256 fingerprints - v5 key (legacy, non-standard)', async () => {
const publicKey = await readKey({ armoredKey: `-----BEGIN PGP PRIVATE KEY BLOCK-----
const publicKey = await readKey({
armoredKey: `-----BEGIN PGP PRIVATE KEY BLOCK-----
xYwFZC7tvxYAAAAtCSsGAQQB2kcPAQEHQP/d1oBAqCKZYxb6k8foyX2Aa/VK
dHFymZPGvHRk1ncs/R0JAQMIrDnS3Bany9EAF6dwQSfPSdObc4ROYIMAnwAA
Expand All @@ -39,7 +40,10 @@ FcJ6BRgWCAAsBYJkLu2/ApsMIqEFD9jz083B91dR0j+13lD2s2tg/2ZvsODq
T/efFOC6BDkAAHcjAPwIPNHnR9bKmkVop6cE05dCIpZ/W8zXDGnjKYrrC4Hb
4gEAmISD1GRkNOmCV8aHwN5svO6HuwXR4cR3o3l7HlYeag8=
=wpkQ
-----END PGP PRIVATE KEY BLOCK-----` });
-----END PGP PRIVATE KEY BLOCK-----`,
// @ts-expect-error missing `config.enableParsingV5Entities` declaration
config: { enableParsingV5Entities: true }
});
const fingerprints = publicKey.getKeys().map((key) => key.getFingerprint());
const sha256Fingerprints = await getSHA256Fingerprints(publicKey);
expect(sha256Fingerprints.length).to.equal(fingerprints.length);
Expand Down

0 comments on commit bb43e49

Please sign in to comment.