Merge pull request #790 from nickmi/master

fixed key lookup example on  README.md
This commit is contained in:
Sanjana Rajan 2018-11-01 11:41:12 +01:00 committed by GitHub
commit 09def1208d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -416,9 +416,8 @@ var options = {
query: 'alice@example.com'
};
hkp.lookup(options).then(function(key) {
var pubkey = await openpgp.key.readArmored(key);
});
let armoredPubkey = await hkp.lookup(options);
var pubkey = await openpgp.key.readArmored(armoredPubkey);
```
#### Upload public key to HKP server