Skip to content

Commit

Permalink
Rm reduntant toString
Browse files Browse the repository at this point in the history
  • Loading branch information
msinkec committed Sep 25, 2023
1 parent a3a2098 commit d096736
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/bitcoin-basics/bsv.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,9 @@ To decrypt a message:
```ts
const decryption = new bsv.ECIES()
decryption.privateKey(recipientPrivateKey)
const msg = decryption.decrypt(ciphertext).toString()
const msg = decryption.decrypt(ciphertext)
console.log(msg)
// "Hello sCrypt!"
```

In this example, `recipientPrivateKey` is the private key of the recipient (the one corresponding to the public key used for encryption).
Expand Down

0 comments on commit d096736

Please sign in to comment.