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

feat: batch computation of ECChain Keys in chainexchange #918

Merged
merged 3 commits into from
Mar 17, 2025

Conversation

Kubuxu
Copy link
Contributor

@Kubuxu Kubuxu commented Mar 14, 2025

Adjust the for loop not to repeat the full chain
The EqualExportedValues is required as we never call explicit Key these
values, leaving cached key empty.

Resolves #831

@Kubuxu Kubuxu requested a review from masih March 14, 2025 15:46
@Kubuxu Kubuxu force-pushed the feat/batch-chain-hash branch from 23a5807 to cd6d991 Compare March 17, 2025 13:26
Kubuxu added 2 commits March 17, 2025 14:50
Adjust the for loop not to repeat the full chain
The EqualExportedValues is required as we never call explicit Key these
values, leaving cached key empty.

Signed-off-by: Jakub Sztandera <[email protected]>
It conflicts with partial message validation

Signed-off-by: Jakub Sztandera <[email protected]>
@Kubuxu Kubuxu force-pushed the feat/batch-chain-hash branch from cd6d991 to 68cdac0 Compare March 17, 2025 13:50
Copy link
Member

@masih masih left a comment

Choose a reason for hiding this comment

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

Nice work @Kubuxu 🍻

Signed-off-by: Jakub Sztandera <[email protected]>
@Kubuxu
Copy link
Contributor Author

Kubuxu commented Mar 17, 2025

There is still room for optimization (the hashing allocates like crazy), so if there is a need, it could be optimized further.

@filecoin-project filecoin-project deleted a comment from github-actions bot Mar 17, 2025
@filecoin-project filecoin-project deleted a comment from github-actions bot Mar 17, 2025
@filecoin-project filecoin-project deleted a comment from github-actions bot Mar 17, 2025
@Kubuxu Kubuxu added this pull request to the merge queue Mar 17, 2025
Merged via the queue into main with commit c0aafa1 Mar 17, 2025
12 checks passed
@Kubuxu Kubuxu deleted the feat/batch-chain-hash branch March 17, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Expose the internal state of Merkle Tree to allow more efficient sub root digest calculation
2 participants