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
Encryption manager #1127
Encryption manager #1127
Conversation
@molnard the interface for Encrypt/Decript is the following: class Pubkey
public string Encrypt(string message) class Key
public string Decrypt(string message) You could create two extension methods that do nothing and move forward with them because the interface will not change. |
1 similar comment
@molnard the interface for Encrypt/Decript is the following: class Pubkey
public string Encrypt(string message) class Key
public string Decrypt(string message) You could create two extension methods that do nothing and move forward with them because the interface will not change. |
Encrypt has been released in the last version of NBitcoin |
Specification
|
WalletWasabi.Gui/Tabs/EncryptionManager/EncryptMessageViewModel.cs
Outdated
Show resolved
Hide resolved
WalletWasabi.Gui/Tabs/EncryptionManager/DecryptMessageViewModel.cs
Outdated
Show resolved
Hide resolved
WalletWasabi.Gui/Tabs/EncryptionManager/VerifyMessageViewModel.cs
Outdated
Show resolved
Hide resolved
WalletWasabi.Gui/Tabs/EncryptionManager/EncryptMessageView.xaml
Outdated
Show resolved
Hide resolved
Btw, I verified the compatibility with Electrum both in NBitcoin unit test and performing a real end-to-end manual test by encrypting with Electrum and decrypting with Wasabi and in the other way too (Encrypting with Wasabi and decrypting with Electrum). It is 100% compatible. You can check the "Electrum compatibility check" checkbox. |
Should add #1145 after merged avoiding conflict in receive tab |
As far as I can see. Warning messages always on the bottom. Success messages always nearby the function. I will leave this as it is now. |
@molnard @danwalmsley I tried to make the multiline textboxes to fill all the available space with no luck. Is it possible? Did you already try? |
no it is not possible. It will only grow if the text is big enough. |
We can simplify the right click menu by rearranging the items like this:
Do this? |
@molnard Let's go through this whole PR together when I'm back in Hungary. |
There was a new BIP proposal today by @cgilliard on the mailing list in the topic: https://github.com/cgilliard/BIP/blob/master/README.md It'd be wise to review it for this PR. |
That bip describes what is already known as compact signatures (the ones used by bitcoin and by wasabi to proof inputs ownership) but with additional bits in the recId to let us know what keyhash to use in the verification. I will review it when i have my laptop in front. Sent from my Moto G(4) using FastHub |
Correct. Basically, these bits allow you to distinguish between p2pkh, p2sh
segwit and bech32 segwit from the signature header.
…On Sun, Feb 17, 2019 at 3:46 PM Lucas Ontivero ***@***.***> wrote:
That bip is describes what is already known as compact signatures (the
ones used by bitcoin and by wasabi to proof inputs ownership) but with
additional bits in the recId to let us know what keyhash to use in the
verification. I will review it when i have my laptop in front.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1127 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AG5at_5-opdtFYHH_vBq0O8wT4APVDYjks5vOb-vgaJpZM4aWeJ5>
.
|
It's not a good idea to use/extend the old message signing scheme. Read more here bitcoin/bitcoin#10542 |
By the way we have Electrum compatibility currently. I will take a look at BIP but any change can harm this. |
@molnard this new BIP will break a lot of compatibility, right. Electrum explicitly checks the recId is in the range [0, 3) so, any signature following this BIP using an address other than p2pkh will be invalid for Electrum. Moreover, signatures following this BIP will break NBitcoin key extraction because of how it is implemented. The PR seems to be for compatibility with Ledger but we really don't know if we are going to see an standard or, for the contrary, we are going to see even more incompatibility. My recommendation is moving forward with what we have and watch how the BIP is received and how much traction/adoption it has in the coming year. |
I agree with @luke-jr and I've been screaming from the start that it'll go much deeper than it seemed at the start. However I also agree with @lontivero, we put way too much work into it, so we should finish it now. I also agree with @lontivero that our primary concern should be compatibility with Electrum and other wallets. |
This can be closed, continued: #1241 |
antecedent: #1122
fixes: #1121
Prerequisites
MultiLine TextBox clips the first line after pressing enter.@danwalmsleyEncrypt/Decrypt message must be implemented into NBitcoin @lontivero @NicolasDorier
Electrum compatibility check
Clear warning message after 7 sec
Decrypt address browser design fix
Review BIP proposal: https://github.com/cgilliard/BIP/blob/master/README.md