-
br-m<kayabanerve:matrix.org> DataHoarder[m]: It's been applied to the spend-auth transcript and generators, and I was not planning to expand that to all of helioselene.
-
DataHoardershould it use its own personalization string, to prevent possible reuse across different context (though I don't see what benefit it'd bring)
-
DataHoarderit was applied to the hash to point, which affected the generators indeed
-
DataHoarderI was going through the codebase a few days ago and saw still some raw blake2b usages
-
br-m<kayabanerve:matrix.org> In general, I'd say that's unnecessary. There were specific reasons for doing so for generators and the signature.
-
br-m<jpk68:matrix.org> Apologies if this is not the best channel, but why include these headers here?
-
br-m<jpk68:matrix.org> github.com/j-berman/monero/blob/990…p/fcmp_pp_rust/fcmp%2B%2B.h#L39-L40
-
DataHoarderstdint.h for uint8_t, stdalign for alignof?
-
DataHoarderit doesn't include other headers from elsewhere
-
br-m<jpk68:matrix.org> I'm stupid, nevermind. I thought this was a C++ header
-
DataHoarder#ifdef __cplusplus :D
-
DataHoarderit's both, C++ and C :)
-
br-m<jpk68:matrix.org> The first is deprecated in C++, and the other one could be <cstdint> instead
-
DataHoarderalso, it's its own compiler unit
-
br-m<jpk68:matrix.org> Yeah, I didn't realize it was supposed to be compatible with C, otherwise they could be changed
-
br-m<jpk68:matrix.org> I think stdalign is a C++ keyword nopw
-
DataHoarderyeah, when exporting stuff for C-header consumption (always that #ifdef __cplusplus) it needs to either be C or have the includes also gated between #ifdef __cplusplus
3 hours ago