fork-openpgpjs/test/general
larabr 1166de205c
Remove primaryKey argument from User methods, rename User.sign to User.certify (#1329)
- Add `User.mainKey` field to store a reference to the corresponding `Key`,
allowing to simplify calling some `User` methods.
- Rename `User.sign` to `User.certify`, since it's used for third-party
certifications and not as a counterpart of `User.verify`, which deals with
self-signatures.
- Change `Key.update` behaviour to store a copy of newly added users and
subkeys. Pointing to the same instance could give issues as the lists of
certifications and signatures could be altered by both the source key and the
updated one.

Breaking changes in `User` methods:
- `User.constructor(userPacket)` -> `constructor(userPacket, mainKey)`
- `User.sign(primaryKey, signingKeys, date, config)` -> `.certify(signingKeys,
date, config)`
- `User.verify(primaryKey, date = new Date(), config)` -> `.verify(date = new
Date(), config)`
- `User.verifyCertificate(primaryKey, certificate, verificationKeys, date = new
Date(), config)` -> `.verifyCertificate(certificate, verificationKeys, date =
new Date(), config)`
- `User.verifyAllCertifications(primaryKey, verificationKeys, date = new
Date(), config)` -> `.verifyAllCertifications(verificationKeys, date = new
Date(), config)`
- `User.isRevoked(primaryKey, certificate, keyPacket, date = new Date(),
config)` -> `.isRevoked(certificate, keyPacket, date = new Date(), config)`
- `User.update(sourceUser, primaryKey, date, config)` -> `.update(sourceUser,
date, config)`
2021-06-15 17:42:00 +02:00
..
armor.js Replace Key with PrivateKey and PublicKey classes (#1300) 2021-05-25 19:18:47 +02:00
biginteger.js Lint all tests (#1235) 2021-02-12 23:00:22 +01:00
brainpool.js Rename public/privateKeys to encryption/decryption/signing/verificationKeys (#1299) 2021-05-17 18:56:28 +02:00
config.js Rename public/privateKeys to encryption/decryption/signing/verificationKeys (#1299) 2021-05-17 18:56:28 +02:00
decompression.js Consolidate read* functions (#1236) 2021-02-17 20:36:33 +01:00
ecc_nist.js Rename public/privateKeys to encryption/decryption/signing/verificationKeys (#1299) 2021-05-17 18:56:28 +02:00
ecc_secp256k1.js Fix various signature verification issues (#1302) 2021-06-08 18:12:48 +02:00
index.js Remove KeyRing class 2021-03-01 11:58:10 +01:00
key.js Remove primaryKey argument from User methods, rename User.sign to User.certify (#1329) 2021-06-15 17:42:00 +02:00
oid.js Lint all tests (#1235) 2021-02-12 23:00:22 +01:00
openpgp.js Require keys in openpgp.sign and make all top-level functions fully async (#1318) 2021-06-15 17:21:18 +02:00
packet.js Fix various signature verification issues (#1302) 2021-06-08 18:12:48 +02:00
signature.js Remove primaryKey argument from User methods, rename User.sign to User.certify (#1329) 2021-06-15 17:42:00 +02:00
streaming.js Rename public/privateKeys to encryption/decryption/signing/verificationKeys (#1299) 2021-05-17 18:56:28 +02:00
testInputs.js Store named key params in key objects (#1141) 2021-02-09 19:25:20 +01:00
util.js Use consistent name casing (#1268) 2021-03-25 19:56:59 +01:00
x25519.js Remove primaryKey argument from User methods, rename User.sign to User.certify (#1329) 2021-06-15 17:42:00 +02:00