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

Fixes a bug that caused the CLI wallet to be unable to decrypt memos #849

Merged
merged 1 commit into from
May 18, 2016
Merged

Fixes a bug that caused the CLI wallet to be unable to decrypt memos #849

merged 1 commit into from
May 18, 2016

Conversation

emfrias
Copy link
Contributor

@emfrias emfrias commented May 18, 2016

in some transactions sent by the web wallet, and vice versa.
The shared secret used in to encrypt the memos is derived by computing
a 256-bit quantity from the public and private keys. When the high-
order byte of this quantity is zero, this implementation was omitting
the high-order byte, producing a 248-bit number instead. When passed
through the hash function to create the symmetric key, this generated
a different key from the C++ implementation which always generates
256-bits.
This fix will restore compatibility with the CLI wallet, but will
prevent the web wallet from decoding any incompatible memos that were
have already been generated.

Some discussion here: https://bitsharestalk.org/index.php/topic,22477.0.html

in some transactions sent by the web wallet, and vice versa.
The shared secret used in to encrypt the memos is derived by computing
a 256-bit quantity from the public and private keys.  When the high-
order byte of this quantity is zero, this implementation was omitting
the high-order byte, producing a 248-bit number instead.  When passed
through the hash function to create the symmetric key, this generated
a different key from the C++ implementation which always generates
256-bits.
This fix will restore compatibility with the CLI wallet, but will
prevent the web wallet from decoding any incompatible memos that were
have already been generated.
@abitmore
Copy link
Contributor

This fix will restore compatibility with the CLI wallet, but will
prevent the web wallet from decoding any incompatible memos that were
have already been generated.

As I commented in the forum thread, why not patch CLI wallet to be compatible with web wallet?

@svk31
Copy link
Contributor

svk31 commented May 18, 2016

Merging this but I'll be adding code to handle legacy memos also.

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.

3 participants