From 50e522f34a7ca70ceabd8a3dd7d8ac338b560a2b Mon Sep 17 00:00:00 2001 From: nickmi Date: Tue, 23 Oct 2018 18:58:17 +0300 Subject: [PATCH 1/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 82ed2470..39b287bd 100644 --- a/README.md +++ b/README.md @@ -416,7 +416,7 @@ var options = { query: 'alice@example.com' }; -hkp.lookup(options).then(function(key) { +hkp.lookup(options).then( async function(key) { var pubkey = await openpgp.key.readArmored(key); }); ``` From cdec95cb21fba69ce7a237b3eb2172a7cd47bbc6 Mon Sep 17 00:00:00 2001 From: nickmi Date: Tue, 23 Oct 2018 23:05:24 +0300 Subject: [PATCH 2/2] Update README.md --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 39b287bd..78d84354 100644 --- a/README.md +++ b/README.md @@ -416,9 +416,8 @@ var options = { query: 'alice@example.com' }; -hkp.lookup(options).then( async 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