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

Feature: Message signing and verifying #720

Merged
merged 3 commits into from
Nov 13, 2017
Merged

Feature: Message signing and verifying #720

merged 3 commits into from
Nov 13, 2017

Conversation

sschiessl-bcp
Copy link
Contributor

@sschiessl-bcp sschiessl-bcp commented Nov 9, 2017

Dear BitShares community,

this feature pull request adds message signing and verifying into the advanced features section in the account overview. The user can write and sign messages and verify ones from other accounts, see attached screenshots.
screenshot_20171109_141856
screenshot_20171109_141919

The format of a message follows common styleguides for signed messages. It contains a header / meta / signature / footer tag (this format is of course up to discussion):

-----BEGIN BITSHARES SIGNED MESSAGE-----
[message from the account]
-----BEGIN META-----
account=[account name]
memokey=[account memo public key]
block=[last irreversible block]
timestamp=[current time]
-----BEGIN SIGNATURE-----
[signature]
-----END BITSHARES SIGNED MESSAGE-----

I simply created the functionality without concerning myself too much with the visualization, I would like to ask you for interface design suggestions here as well. Also, please do not hesitate to give any feedback, comments or improvement suggestions. Furthermore, if I may ask for that, I would like feedback on my code style (potential no-gos), and maybe if there are standards that I overlooked to use that the BitShares platform is using.

Best regards,
Stefan Schießl
Blockchain Projects BV

Stefan Schiessl added 3 commits November 8, 2017 17:40
Signed-off-by: Stefan Schiessl <stefan.schiessl@blockchainprojectsbv.com>
Signed-off-by: Stefan Schiessl <stefan.schiessl@blockchainprojectsbv.com>
Signed-off-by: Stefan Schiessl <stefan.schiessl@blockchainprojectsbv.com>
@svk31
Copy link
Contributor

svk31 commented Nov 9, 2017

This looks awesome, nice work! @wmbutler I suppose you'd like to offer some input on the UX?

@xeroc
Copy link
Member

xeroc commented Nov 9, 2017

This feature offer some very nice possivilities ... No people can proof ownership of an account to anyone without sending transactions around ..

@svk31
Copy link
Contributor

svk31 commented Nov 13, 2017

I'm merging this as is and we can work on the styling etc later, thanks for the PR!

@svk31 svk31 merged commit 3531e70 into bitshares:staging Nov 13, 2017
@sschiessl-bcp
Copy link
Contributor Author

Thank you @svk31 . I'm happy that it got accepted. I'll be happy for styling suggestions!

One thing that is currently missing as functionality: The setting of the "Verify while typing" slider is not stored on an per-user basis, it is simply off everytime the user restarts the app.
What is the best way to store that configuration per-user?

CryptoBridge pushed a commit to CryptoBridge/cryptobridge-ui that referenced this pull request Nov 23, 2017
* first version for message signing

Signed-off-by: Stefan Schiessl <stefan.schiessl@blockchainprojectsbv.com>

* added proper message format with head/meta/signature/foot

Signed-off-by: Stefan Schiessl <stefan.schiessl@blockchainprojectsbv.com>

* code cleanup, refactor and documentation

Signed-off-by: Stefan Schiessl <stefan.schiessl@blockchainprojectsbv.com>
@sschiessl-bcp sschiessl-bcp deleted the feature-message-signing branch November 28, 2017 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants