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

Circuit compiler #1218

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft

Circuit compiler #1218

wants to merge 15 commits into from

Conversation

chriseth
Copy link
Member

No description provided.

@chriseth
Copy link
Member Author

chriseth commented Apr 2, 2024

Translation of

        for u32 i in 0..5 {
            bc[i] = st[i] ^ st[i + 5] ^ st[i + 10] ^ st[i + 15] ^ st[i + 20];
        }

let single_step = |st, i| xor(xor(xor(xor(st[i], st[i + 5]), st[i + 10]), st[i + 15]) st[i + 20]);
let loop = |st| map([0, 1, 2, 3, 4], |i| single_step(st, i));

@chriseth
Copy link
Member Author

chriseth commented Apr 2, 2024

@chriseth chriseth changed the base branch from main to more_utils April 20, 2024 08:56
@chriseth chriseth mentioned this pull request Apr 22, 2024
7 tasks
@chriseth chriseth force-pushed the more_utils branch 2 times, most recently from 5434f5a to 3848c0e Compare April 23, 2024 08:10
Base automatically changed from more_utils to main April 23, 2024 22:38
@chriseth chriseth force-pushed the circuit branch 4 times, most recently from 8d2f574 to 05fa16c Compare April 26, 2024 13:48
@chriseth chriseth changed the base branch from main to btree April 26, 2024 13:48
};

let permutation = ops_to_permutation(flattened);
// TODO I don't think this is correct, it shuold add namespace len.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// TODO I don't think this is correct, it shuold add namespace len.
// TODO I don't think this is correct, it should add namespace len.

Base automatically changed from btree to main April 30, 2024 10:01
@chriseth chriseth force-pushed the circuit branch 5 times, most recently from b343924 to 5c00bca Compare May 8, 2024 17:52
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