sheet suggesting contribution if passport not supported

This commit is contained in:
0xturboblitz
2024-06-20 16:43:56 -07:00
parent 2c257e09e3
commit 2b7a0ca0dd
4 changed files with 46 additions and 12 deletions

View File

@@ -35,8 +35,8 @@ export function generateCircuitInputsRegister(
}
if (!["sha256WithRSAEncryption", "sha1WithRSAEncryption"].includes(signatureAlgorithm)) {
console.error(`${signatureAlgorithm} not supported for proof right now.`);
throw new Error(`${signatureAlgorithm} not supported for proof right now.`);
console.error(`${signatureAlgorithm} has not been implemented.`);
throw new Error(`${signatureAlgorithm} has not been implemented.`);
}
const hashLen = getHashLen(signatureAlgorithm);
@@ -50,9 +50,6 @@ export function generateCircuitInputsRegister(
const concatHash = hash(signatureAlgorithm, dataGroupHashes);
const sigAlgFormatted = formatSigAlgNameForCircuit(signatureAlgorithm, pubKey.exponent);
const sigAlgIndex = SignatureAlgorithm[sigAlgFormatted]
assert(
arraysAreEqual(
concatHash,