Merge pull request #843 from crcunningham/patch-1

Update README.md: Fix error
This commit is contained in:
Sanjana Rajan
2019-01-24 10:10:38 +01:00
committed by GitHub

View File

@@ -184,7 +184,7 @@ const encryptDecryptFunction = async() => {
encrypted = ciphertext.data // '-----BEGIN PGP MESSAGE ... END PGP MESSAGE-----'
return encrypted
})
.then(encrypted => {
.then(async encrypted => {
const options = {
message: await openpgp.message.readArmored(encrypted), // parse armored message
publicKeys: (await openpgp.key.readArmored(pubkey)).keys, // for verification (optional)