Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

public/un-encrypted memo #8

Closed
baabeetaa opened this issue Sep 24, 2017 · 1 comment
Closed

public/un-encrypted memo #8

baabeetaa opened this issue Sep 24, 2017 · 1 comment
Labels

Comments

@baabeetaa
Copy link

baabeetaa commented Sep 24, 2017

If @ref from == @ref to and @ref from == 0 then no encryption is used, the memo is public.

https://github.com/bitshares/bitshares-core/blob/master/libraries/chain/include/graphene/chain/protocol/memo.hpp#L36

However, Im not able to set these params to null or undefined (void 0).
https://github.com/bitshares/bitsharesjs/blob/master/lib/serializer/src/operations.js#L393

BTW, I can still set the message to clear text as a workaround.

Is is a bug or I am missing anything?
Thank you,

@xeroc
Copy link
Member

xeroc commented Sep 25, 2017

On chain, the from and to fields are not optional, but required. A work around would be to use the 'all-zero pubkey' (properly formated with checksum etc). That could be used to indicate plaintext

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants