Need help with working examples of decode memo on bitsharesjs.
node -v 8.11.1
I get the transaction history:
{
from: '<BTS Address>',
to: '<BTS Address>',
nonce: '<random>',
message: '<encrypted message>'
}
What sequence of steps is needed to perform the decryption?
by doing:
Aes.decrypt_with_checksum(
private_key,
public_key,
memo.nonce,
memo.message
).toString("utf-8");
getting an error: transfer memo exception ...
~TypeError: private_key.get_shared_secret is not a function.
~node_modules\bitsharesjs\dist\ecc\src\aes.js:97
Has anyone encountered a similar problem?