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

Jonas/refactor tables #40

Merged
merged 11 commits into from
Nov 7, 2023
Merged

Jonas/refactor tables #40

merged 11 commits into from
Nov 7, 2023

Conversation

jschneider-bensch
Copy link
Contributor

This PR greatly simplifies table data structures and thereby table transformations.

It's still a draft for now since the WASM demo needs more help. It's updated to use the new table types but the wasm feature does not build at the moment, I believe because of the dependency on libcrux, although I tried enabling libcrux'es own wasm feature, to no avail.

@franziskuskiefer
Copy link
Member

What's the state here?

@jschneider-bensch
Copy link
Contributor Author

jschneider-bensch commented Nov 6, 2023

The demo can be built now, since I pinned libcrux to an earlier commit, by using the emscripten toolchain, i.e.

$ cd ./hacspec-scrambledb/scrambledb
$ CC=emcc AR=emar wasm-pack build --target web --features wasm

builds the demo in hacspec-scrambledb/scrambledb/pkg. I think the main part of the PR (the tables) are for sure ready for review and tidying up the demo build could be addressed in a follow-up.

@jschneider-bensch jschneider-bensch marked this pull request as ready for review November 6, 2023 10:31
Copy link
Member

@franziskuskiefer franziskuskiefer left a comment

Choose a reason for hiding this comment

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

Looks like this needs another pass to get cleaned up.

hacspec-scrambledb/scrambledb/Cargo.toml Show resolved Hide resolved
hacspec-scrambledb/scrambledb/src/join.rs Outdated Show resolved Hide resolved
- remove commented code
- Rename according to spec
- Consistent documentation
@jschneider-bensch
Copy link
Contributor Author

With the latest commit, I've removed the old comments, aligned the transformation names with the naming scheme from the spec and given more consistent doc comments.

Copy link
Member

@franziskuskiefer franziskuskiefer left a comment

Choose a reason for hiding this comment

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

Thanks

@jschneider-bensch jschneider-bensch merged commit 3f82eb0 into main Nov 7, 2023
3 checks passed
@jschneider-bensch jschneider-bensch deleted the jonas/refactor-tables branch November 7, 2023 12:17
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