Update encrypted-message.md

Fixed typo in sample code.
pull/580/head
Aheesh 3 years ago committed by GitHub
parent 555d76ceae
commit 5518ea0d49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tutorials/encrypted-message.md

@ -33,7 +33,7 @@ const payload = {
signature
};
const encrypted = await EthCrypto.encryptWithPublicKey(
bob.publicKey, // by encryping with bobs publicKey, only bob can decrypt the payload with his privateKey
bob.publicKey, // by encrypting with bobs publicKey, only bob can decrypt the payload with his privateKey
JSON.stringify(payload) // we have to stringify the payload before we can encrypt it
);
/* { iv: 'c66fbc24cc7ef520a7...',

Loading…
Cancel
Save