Skip to content

Commit

Permalink
bugfix: memo don't correct encrypt utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolay Nozdrin-Plotnitsky committed Oct 11, 2018
1 parent 7e62ba1 commit 35b2455
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/bitshares.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export default class BitShares {
from: this.memoKey.toPublicKey().toPublicKeyString(),
to,
nonce,
message: Aes.encrypt_with_checksum(this.memoKey, to, nonce, message)
message: Aes.encrypt_with_checksum(this.memoKey, to, nonce, new Buffer(message, "utf-8"))
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "btsdex",
"version": "0.5.0",
"version": "0.5.1",
"description": "Package for work with BitShares DEX",
"main": "index.js",
"bin": {
Expand Down

0 comments on commit 35b2455

Please sign in to comment.