This commit is contained in:
jude
2023-04-29 16:35:17 +01:00
parent cceb6dee90
commit 0fed48b79d
5 changed files with 65 additions and 15 deletions

View File

@ -1,7 +1,7 @@
import { cryptoRandom } from "../crypto/random_primes.js";
import { Region } from "./map.js";
const ROUNDS = 12;
const ROUNDS = 24;
function cryptoRange(upper) {
// This is ridiculous: why implement a BigInt primitive, have it behave like a number, and then _not_ offer
@ -603,16 +603,10 @@ export function proveFortify(fortify) {
}
}
let rangeProofs = {};
for (let r of regionNames) {
rangeProofs[r] = proveBitLength(Region.getRegion(r).strength.cipherText);
}
return {
fortify: fortify,
proofs: proofs,
verifications: verifications,
rangeProofs: rangeProofs,
};
}