Skip to content

Improve ECDH and blinding factor calculations#220

Merged
luke-jr merged 1 commit intobitcoin:masterfrom
justusranvier:shared_secret
Oct 16, 2015
Merged

Improve ECDH and blinding factor calculations#220
luke-jr merged 1 commit intobitcoin:masterfrom
justusranvier:shared_secret

Conversation

@justusranvier
Copy link
Copy Markdown
Contributor

The blinding factor used for notification transactions incorporates and outpoint being spent by the notification transaction.

This ensures that blinding factors will always be unique, even if a user sends a notification transaction to the same recipient multiple times while spending funds from the same address.

Since some common EC libraries have ECDH functions that only return the x value of the resulting point, only use the x value for calculating scalar shared secrets.

The blinding factor used for notification transactions incorporates and outpoint being spent by the notification transaction.

This ensures that blinding factors will always be unique, even if a user sends a notification transaction to the same recipient multiple times while spending funds from the same address.

Since some common EC libraries have ECDH functions that only return the x value of the resulting point, only use the x value for calculating scalar shared secrets.
luke-jr added a commit that referenced this pull request Oct 16, 2015
Improve ECDH and blinding factor calculations
@luke-jr luke-jr merged commit 34ad220 into bitcoin:master Oct 16, 2015
@justusranvier justusranvier deleted the shared_secret branch October 16, 2015 22:28
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.

2 participants