Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exports fromBytes from the library #19

Merged
merged 1 commit into from
Jan 18, 2024
Merged

exports fromBytes from the library #19

merged 1 commit into from
Jan 18, 2024

Conversation

emizzle
Copy link
Contributor

@emizzle emizzle commented Jan 9, 2024

Exports fromBytes from the nim-poseidon2 lib.

It is still a mystery how this is working in nim-codex/master:
https://github.com/codex-storage/nim-codex/blob/master/codex/merkletree/poseidon2.nim#L77

    leaves.mapIt( Poseidon2Hash.fromBytes(it) ))

Before the changes in nim-codex#663, fromBytes seemed to have been resolved correctly by nim-poseidon/io. However, with the changes in nim-codex#663, fromBytes could no longer be resolved. By exporting fromBytes from nim-poseidon2, the correct resolution is now happening.

Note that the base branch for this PR is the branch for #18.

Base automatically changed from convert-from-32-bytes to main January 18, 2024 08:09
@benbierens benbierens merged commit ad26df8 into main Jan 18, 2024
2 checks passed
@benbierens benbierens deleted the export-fromBytes branch January 18, 2024 08:09
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.

None yet

2 participants