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.
This commit is contained in:
parent
c7339f6f78
commit
cd61531b41
|
@ -379,17 +379,17 @@ var options = {
|
||||||
openpgp.generateKey(options).then(function(key) {
|
openpgp.generateKey(options).then(function(key) {
|
||||||
var privkey = key.privateKeyArmored; // '-----BEGIN PGP PRIVATE KEY BLOCK ... '
|
var privkey = key.privateKeyArmored; // '-----BEGIN PGP PRIVATE KEY BLOCK ... '
|
||||||
var pubkey = key.publicKeyArmored; // '-----BEGIN PGP PUBLIC 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
|
#### Revoke a key
|
||||||
|
|
||||||
Using a revocation signature:
|
Using a revocation certificate:
|
||||||
```js
|
```js
|
||||||
var options = {
|
var options = {
|
||||||
key: openpgp.key.readArmored(pubkey).keys[0],
|
key: openpgp.key.readArmored(pubkey).keys[0],
|
||||||
revocationSignature: revocationSignature
|
revocationCertificate: revocationCertificate
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user