Compare commits

...

1 Commits

Author SHA1 Message Date
David Testé
da6eb1a592 chore(ci): remove wasm test that is not relevant 2024-10-09 09:29:35 +02:00
3 changed files with 0 additions and 25 deletions

View File

@@ -26,7 +26,6 @@
Default timeout is available in ci/webdriver.py under variable name `case_timeout_seconds`
-->
<input type="button" id="publicKeyTest" value="Public Key Test" disabled />
<input
type="button"
id="compressedPublicKeyTest"

View File

@@ -23,7 +23,6 @@ async function setup() {
const demos = await Comlink.wrap(worker).demos;
const demoNames = [
"publicKeyTest",
"compressedPublicKeyTest",
"compressedCompactPublicKeyTest256BitBig",
"compressedCompactPublicKeyTest256BitSmall",

View File

@@ -74,28 +74,6 @@ async function compressedPublicKeyTest() {
assert_eq(decrypted, 255);
}
async function publicKeyTest() {
let config = TfheConfigBuilder.default_with_small_encryption().build();
console.time("ClientKey Gen");
let clientKey = TfheClientKey.generate(config);
console.timeEnd("ClientKey Gen");
console.time("PublicKey Gen");
let publicKey = TfhePublicKey.new(clientKey);
console.timeEnd("PublicKey Gen");
console.time("FheUint8 encrypt with PublicKey");
let encrypted = FheUint8.encrypt_with_public_key(255, publicKey);
console.timeEnd("FheUint8 encrypt with PublicKey");
let ser = encrypted.serialize();
console.log("Ciphertext Size", ser.length);
let decrypted = encrypted.decrypt(clientKey);
assert_eq(decrypted, 255);
}
async function compactPublicKeyBench32BitOnConfig(config) {
const bench_loops = 100;
let bench_results = {};
@@ -733,7 +711,6 @@ async function main() {
await init_panic_hook();
return Comlink.proxy({
publicKeyTest,
compressedPublicKeyTest,
compressedCompactPublicKeyTest256BitSmall,
compressedCompactPublicKeyTest256BitBig,