-
Notifications
You must be signed in to change notification settings - Fork 385
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
Use HMAC derivation for blinding keys #74
Conversation
75f59f1
to
9610daf
Compare
Also included now:
|
0e683da
to
ef5696b
Compare
ACK when getaddressesbyaccount is fixed such that it includes blinding keys. |
Updated. |
vBlindingKeys[nOut] = blinding_key.GetPubKey(); | ||
} | ||
} | ||
if (!res && (blinding_key = pwallet->GetBlindingKey(NULL)).IsValid()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're having issues with none of these three cases firing with either unblinded or static blinded outputs. We get:
alphad: base58.cpp:240: CBitcoinAddress& CBitcoinAddress::AddBlindingKey(const CPubKey&): Assertion `pubkey.size() == 33' failed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't happen when the list is going to be empty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I pushed a fix for the non-blinded case.
My attempt at fixing sending, etc. |
@sipa Please review @instagibbs patch and add to your PR branch if you like it? |
@warren Cherry picked. |
c5904a9 Use HMAC derivation for blinding keys (Pieter Wuille)
Use a per-wallet secret to HMAC-SHA256 deriving blinding keys, rather than using a single static one.
No support for importing keys with alternate derivation keys yet.
Needs testing.