You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge bitcoin#19326: Simplify hash.h interface using Spans
77c5073 Make Hash[160] consume range-like objects (Pieter Wuille)
02c4cc5 Make CHash256/CHash160 output to Span (Pieter Wuille)
0ef97b1 Make MurmurHash3 consume Spans (Pieter Wuille)
e549bf8 Make CHash256 and CHash160 consume Spans (Pieter Wuille)
2a2182c Make script/standard's BaseHash Span-convertible (Pieter Wuille)
e63dcc3 Add MakeUCharSpan, to help constructing Span<[const] unsigned char> (Pieter Wuille)
5678250 Make uint256 Span-convertible by adding ::data() (Pieter Wuille)
131a2f0 scripted-diff: rename base_blob::data to m_data (Pieter Wuille)
Pull request description:
This makes use of the implicit constructions and conversions to Span introduced in bitcoin#18468 to simplify the hash.h interface:
* All functions that take a pointer and a length are changed to take a Span instead.
* The Hash() and Hash160() functions are changed to take in "range" objects instead of begin/end iterators.
ACKs for top commit:
laanwj:
re-ACK 77c5073
jonatack:
Code review re-ACK 77c5073 per `git range-diff 14ceddd49fc01677c5073`
Tree-SHA512: 9ec929891b1ddcf30eb14b946ee1bf142eca1442b9de0067ad6a3c181e0c7ea0c99c0e291e7f6e7a18bd7bdf78fe94ee3d5de66e167401674caf91e026269771
0 commit comments