Skip to content

Conversation

recmo
Copy link
Contributor

@recmo recmo commented Jun 17, 2025

Builds on #62 and makes minimal diff replacement of DomainSeparator. Some of the functionality pattern provides is not used but will be used in an refactored/extended API. It's also awkwardly explicit in creating the patterns for testing, this will be fixed in a follow up refactoring PR.

Work in progress tests are not yet adapted.

Hierarchy::Begin => stack.push((position, interaction)),
Hierarchy::End => {
let Some((position, begin)) = stack.pop() else {
dbg!();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
dbg!();

label: Label,
/// The Rust name of the type of the value.
///
/// We use [`core::any::type_name`] to verify value types intead of [`core::any::TypeID`] since
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// We use [`core::any::type_name`] to verify value types intead of [`core::any::TypeID`] since
/// We use [`core::any::type_name`] to verify value types instead of [`core::any::TypeID`] since

recmo added 4 commits June 19, 2025 17:04
…rkworks-rs#61)

Use zerocopy to do safe transmute between `[u8;200]` and `[u64;25]`.
Zerocopy does compile time checks on size, alignment and other
constraints. Note that `zerocopy` was already a transitive dependency
through `rand` and `arkworks`, so this doesn't grow the dependency set.

Makes the internal state `[u64;25]` to avoid manual allignment
annotation.

Adds `PartialEq, Eq, Debug` traits for convenience.

Consistently name `iv`.
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.

2 participants