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

Add gnark mimc #106

Merged
merged 6 commits into from
Mar 31, 2023
Merged

Add gnark mimc #106

merged 6 commits into from
Mar 31, 2023

Conversation

matkt
Copy link
Contributor

@matkt matkt commented Mar 30, 2023

Add gnark mimc to the besu native project

Tested if we have memory link thanks to Visual VM and it's fine

 public static void main(String[] args) {
        for (int j = 0; j < 1000000000; j++) {
            MutableBytes input = MutableBytes.of(new byte[Bytes32.SIZE*16]);
            for (int i = 0; i < 16; i++) {
                input.set(Bytes32.SIZE*(i+1)-i,((byte)((byte) i+(byte) j)));
            }
            byte[] output = new byte[Bytes32.SIZE];
            LibMimc.compute(input.toArrayUnsafe(), input.size(), output);
            System.out.println(Bytes32.wrap(output));
        }

    }

image

Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
@github-advanced-security
Copy link

You have successfully added a new CodeQL configuration /language:java. As part of the setup process, we have scanned this repository and found 7 existing alerts. Please check the repository Security tab to see all alerts.

@matkt matkt force-pushed the feature/add-gnark-mimc branch 3 times, most recently from 0852e8b to 30e78f0 Compare March 30, 2023 14:33
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
@garyschulte garyschulte force-pushed the feature/add-gnark-mimc branch 3 times, most recently from 450a67a to 10df234 Compare March 31, 2023 00:35
Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
@garyschulte garyschulte marked this pull request as ready for review March 31, 2023 01:49
Copy link
Contributor

@garyschulte garyschulte left a comment

Choose a reason for hiding this comment

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

🚢

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