Skip to content

Conversation

@michaelelliot
Copy link

This PR adds a public hash_fixed() function that bypasses the additional sponge.absorb(1) that occurs when the number of fields to hash is not equal to the total input fields.

This is useful when you have a zero-padded, fixed-size input and only want to hash a subset of the fields, but still need hashing to remain consistent in the case where the full input size is used (which is otherwise indistinguishable from a fixed-size input, even though it is actually a dynamic-size input).

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