Skip to content

Commit

Permalink
add curve to ecdsa circuits name
Browse files Browse the repository at this point in the history
  • Loading branch information
remicolin committed Sep 23, 2024
1 parent 93a4817 commit 35a697b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions circuits/scripts/build_prove_circuits.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ build_circuit() {
# name:folder:build_flag
# set build_flag to false if you want to skip the build
CIRCUITS=(
"prove_rsa_65537_sha256:prove:true"
"prove_rsa_65537_sha1:prove:true"
"prove_rsapss_65537_sha256:prove:true"
"prove_rsa_65537_sha256:prove:false"
"prove_rsa_65537_sha1:prove:false"
"prove_rsapss_65537_sha256:prove:false"
"prove_ecdsa_secp256r1_sha256:prove:true"
"prove_ecdsa_secp256r1_sha1:prove:true"
)

TOTAL_START_TIME=$(date +%s)
Expand Down
2 changes: 1 addition & 1 deletion common/src/utils/certificates/handleCertificate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function parseCertificate(pem: string) {

export const getCircuitName = (circuitType: string, signatureAlgorithm: string, hashFunction: string) => {
if (signatureAlgorithm === 'ecdsa') {
return circuitType + "_" + signatureAlgorithm + "_" + hashFunction;
return circuitType + "_" + signatureAlgorithm + "_secp256r1_" + hashFunction;
}
else {
return circuitType + "_" + signatureAlgorithm + "_65537_" + hashFunction;
Expand Down

0 comments on commit 35a697b

Please sign in to comment.