Skip to content

Conversation

laanwj
Copy link
Member

@laanwj laanwj commented Jun 8, 2016

Add full test vectors from spec, test per byte and per 8 bytes.

Builds on #8086 (as it adds per-byte hashing).

@laanwj laanwj added the Tests label Jun 8, 2016
@sipa
Copy link
Member

sipa commented Jun 8, 2016

utACK eebc232

@instagibbs
Copy link
Member

May want to re-title this PR

@sipa
Copy link
Member

sipa commented Jun 8, 2016

The original had grown in scope anyway, it now does:

  • Extend the SipHash implementation
  • Improved comments
  • Added tests
  • Switched to thread-safe random seed initializers
  • Switch node eviction to use siphash

@laanwj laanwj changed the title test: Add more test vectors for siphash Use SipHash for node eviction (cont'd) Jun 8, 2016
@NicolasDorier
Copy link
Contributor

NicolasDorier commented Jun 8, 2016

tACK on the purely Siphash part (reimplemented this PR tests included into NBitcoin successfully on MetacoSA/NBitcoin@c915829)

@sipa sipa merged commit eebc232 into bitcoin:master Jun 8, 2016
sipa added a commit that referenced this pull request Jun 8, 2016
eebc232 test: Add more test vectors for siphash (Wladimir J. van der Laan)
8884830 Use C++11 thread-safe static initializers (Pieter Wuille)
c31b24f Use 64-bit SipHash of netgroups in eviction (Pieter Wuille)
9bf156b Support SipHash with arbitrary byte writes (Pieter Wuille)
053930f Avoid recalculating vchKeyedNetGroup in eviction logic. (Patrick Strateman)
@sipa
Copy link
Member

sipa commented Jun 9, 2016 via email

@laanwj
Copy link
Member Author

laanwj commented Jun 9, 2016

@sipa it's not clear who or what you're replying to

In any case, it was time to merge this, there were no concrete concerns left.

@maflcko maflcko added P2P and removed Tests labels Jun 9, 2016
@kazcw kazcw mentioned this pull request Jun 10, 2016
@rebroad
Copy link
Contributor

rebroad commented Aug 9, 2016

What is a SipHash?

@sipa
Copy link
Member

sipa commented Aug 9, 2016 via email

codablock added a commit to codablock/dash that referenced this pull request Oct 19, 2017
Taken from Bitcoin bitcoin#8173/888483098e60f2a944f1d246bbfec4d14a2975f8

Needed to align code for upcoming per-utxo backports.
codablock pushed a commit to codablock/dash that referenced this pull request Dec 22, 2017
eebc232 test: Add more test vectors for siphash (Wladimir J. van der Laan)
8884830 Use C++11 thread-safe static initializers (Pieter Wuille)
c31b24f Use 64-bit SipHash of netgroups in eviction (Pieter Wuille)
9bf156b Support SipHash with arbitrary byte writes (Pieter Wuille)
053930f Avoid recalculating vchKeyedNetGroup in eviction logic. (Patrick Strateman)
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Jan 6, 2019
eebc232 test: Add more test vectors for siphash (Wladimir J. van der Laan)
8884830 Use C++11 thread-safe static initializers (Pieter Wuille)
c31b24f Use 64-bit SipHash of netgroups in eviction (Pieter Wuille)
9bf156b Support SipHash with arbitrary byte writes (Pieter Wuille)
053930f Avoid recalculating vchKeyedNetGroup in eviction logic. (Patrick Strateman)
furszy added a commit to PIVX-Project/PIVX that referenced this pull request Aug 5, 2020
f980d43 Implement SipHash in Python (Pieter Wuille)
042d691 test: Add more test vectors for siphash (Wladimir J. van der Laan)
ba049bf Use C++11 thread-safe static initializers (Pieter Wuille)
0f4290f Use 64-bit SipHash of netgroups in eviction (Pieter Wuille)
d81973a Support SipHash with arbitrary byte writes (Pieter Wuille)
03dba42 Avoid recalculating vchKeyedNetGroup in eviction logic. (Patrick Strateman)

Pull request description:

  Builds on top of
  - [x] #1768

  Use SipHash for node eviction and add more test vectors for siphash
  (backports bitcoin#8173)

ACKs for top commit:
  furszy:
    Looking good, utACK f980d43
  Fuzzbawls:
    utACK f980d43

Tree-SHA512: 8e71322113b32a43e205a1e6dcd3b6a2b466da0f07ac59cc20856792fccb740a21edfc0f3791ddb73457676e8aa29979e155954a50361e519b7757b3aa4f007e
zkbot added a commit to zcash/zcash that referenced this pull request Feb 17, 2021
Use SipHash for node eviction

Backport of bitcoin/bitcoin#8173

Commits are listed in stack order.

- pick bitcoin/bitcoin@eebc232187
- pick bitcoin/bitcoin@888483098e
- pick bitcoin/bitcoin@c31b24f745
- pick bitcoin/bitcoin@9bf156bb9e
- pick bitcoin/bitcoin@053930ffc4
   - missing bitcoin/bitcoin#5697 (not a candidate for direct inclusion), using pieces directly
   - conflicts with #1258 which it removes part of (this is ok)
      - ignore bitcoin/bitcoin#6374
      - requires bitcoin/bitcoin#7906, or at least bitcoin/bitcoin@cca221fd21
         - pick bitcoin/bitcoin@cca221fd21
   - conflicts with bitcoin/bitcoin#7181, not needed until later if at all
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants