Skip to content

Conversation

@nazar-pc
Copy link
Contributor

@nazar-pc nazar-pc commented Apr 5, 2025

This is extracted from #439.

arrayref usage was reduced due to API being non-const and honestly a bit confusing to use. With a few trivial macros it can be removed in many places (I only touched those relevant to #439) and expanded code is much easier to read.

Portable implementation was refactored a bit to make functions const fn-friendly, but not marked as const fn just yet.

Hopefully these changes are not too controversial.

@nazar-pc
Copy link
Contributor Author

@oconnor663 do you think this can be merged as is?

I'd like to rebase #439 on it later.

I'm using domain separation for hashes in various places and using blake3 hash of a fixed string as a key, which would be nice to do with constants rather than hardcoding values for readability.

@nazar-pc
Copy link
Contributor Author

@oconnor663 any concerns here?

I'd really like to somehow make progress on const support and hopefully #478 soon after as well.

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.

1 participant