Skip to content

Conversation

@bhaskar1001101
Copy link

hash size is not fixed to 32 and depends on the tweakable hash.

merkleizeWithTweak needs to return the entire merkle tree for the secret key. it allocates memory but might go against the design of the library? (mentioned in #17)

it is also generic over TweakHash instead of hasher as the zig-poseidon api is very different.

tests will have to be added in the hash-sigz lib as tweakable hash function is not available here directly.

@bhaskar1001101 bhaskar1001101 requested a review from gballet as a code owner April 30, 2025 15:41
@g11tech
Copy link
Member

g11tech commented Apr 30, 2025

add test cases

@bhaskar1001101
Copy link
Author

adding test cases here will lead to a circular dependency as the tests will need a ShaTweakHash from the hash-sigz lib. should be better to keep the test at https://github.com/blockblaz/hash-sigz/blob/sha-winternitz/src/tweak/tree.zig?

@bhaskar1001101
Copy link
Author

added test cases and abstracted away the tweakhash to https://github.com/bhaskar1001101/tweak-hash
@g11tech

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