From cd61531b41f5de3ecd1f43f00ffa85e74d212484 Mon Sep 17 00:00:00 2001 From: Meitar M Date: Sat, 15 Dec 2018 15:14:40 -0500 Subject: [PATCH] Fix revocation example in README, use `revocationCertificate`. There is no longer any `revocationSignature` member of OpenPGP.js `key` objects, and the `options` object passed to the `revokeKey()` method no longer accepts a `revocationSignature` member, either. These have been changed to `revocationCertificate`, so this commit updates the examples that use this part of the API to reflect the current implementation. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d760c924..9ba75db4 100644 --- a/README.md +++ b/README.md @@ -379,17 +379,17 @@ var options = { openpgp.generateKey(options).then(function(key) { var privkey = key.privateKeyArmored; // '-----BEGIN PGP PRIVATE KEY BLOCK ... ' var pubkey = key.publicKeyArmored; // '-----BEGIN PGP PUBLIC KEY BLOCK ... ' - var revocationSignature = key.revocationSignature; // '-----BEGIN PGP PUBLIC KEY BLOCK ... ' + var revocationCertificate = key.revocationCertificate; // '-----BEGIN PGP PUBLIC KEY BLOCK ... ' }); ``` #### Revoke a key -Using a revocation signature: +Using a revocation certificate: ```js var options = { key: openpgp.key.readArmored(pubkey).keys[0], - revocationSignature: revocationSignature + revocationCertificate: revocationCertificate }; ```