hardcode app circuit to prove_rsa_65537_sha256, todo adapt so it supports the 3 of them

This commit is contained in:
0xturboblitz
2024-08-22 16:00:12 +08:00
parent 59c2840876
commit c5de31be77
2 changed files with 5 additions and 2 deletions

View File

@@ -100,6 +100,8 @@ const ProveScreen: React.FC<ProveScreenProps> = ({ setSheetRegisterIsOpen }) =>
setIsConnecting(true);
setGeneratingProof(true);
console.log("handleProve. selectedApp", selectedApp)
if (!socket) {
throw new Error('Socket not initialized');
}

View File

@@ -24,12 +24,13 @@ export interface AppType {
export function createAppType(data: AppType): AppType {
return {
//id: data.id || "",
...data,
name: data.name,
scope: data.scope,
//callbackEndPoint: data.callbackEndPoint,
userId: data.userId,
disclosureOptions: data.disclosureOptions,
circuit: data.circuit || "prove_rsa_65537_sha256",
...data
// circuit: data.circuit || "prove_rsa_65537_sha256",
circuit: "prove_rsa_65537_sha256",
};
}