-
Notifications
You must be signed in to change notification settings - Fork 160
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
chore(zk): add a proof compat test between x86_64 and wasm #1750
Conversation
3614558
to
1155d9e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat. Just small comment.
1155d9e
to
2350cc2
Compare
2350cc2
to
1908abe
Compare
@@ -7,5 +7,5 @@ | |||
"test": "node --test --test-reporter=tap" | |||
}, | |||
"author": "", | |||
"license": "ISC" | |||
"license": "BSD-3-Clause" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BSD-3-Clause-Clear actually, not the same as the BSD 3 Clause
}, | ||
"type": "commonjs", | ||
"author": "", | ||
"license": "BSD-3-Clause", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same thing here
@@ -10,7 +10,7 @@ | |||
"check-format": "prettier . --check" | |||
}, | |||
"author": "", | |||
"license": "ISC", | |||
"license": "BSD-3-Clause", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as well
let config = ConfigBuilder::default().build(); | ||
let client_key = ClientKey::generate(config); | ||
let pub_key = CompactPublicKey::new(&client_key); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's not the Blockchain config
see the test_proven_compact_list_with_casting
for config
|
||
builder.push_u8(0xff); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fmt
|
||
const encrypted = builder.build_with_proof_packed( | ||
publicParams, | ||
new Uint8Array(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could use a metadata array maybe ?
need the same on the rust side
closes: https://github.com/zama-ai/tfhe-rs-internal/issues/810
PR content/description
This PR adds a test that:
This is done to validate proof compatibility between wasm (32b) and x86_64