Improve ECDH and blinding factor calculations #220

pull justusranvier wants to merge 1 commits into bitcoin:master from justusranvier:shared_secret changing 1 files +13 −8
  1. justusranvier commented at 9:07 PM on October 12, 2015: 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.

  2. Improve ECDH and blinding factor calculations
    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.
    b930994728
  3. luke-jr referenced this in commit 34ad220ea5 on Oct 16, 2015
  4. luke-jr merged this on Oct 16, 2015
  5. luke-jr closed this on Oct 16, 2015

  6. justusranvier deleted the branch on Oct 16, 2015
Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bips. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-15 15:10 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me