Skip to content

Commit e0dcc10

Browse files
committed
PasswordInTreeProofClass
1 parent 123433f commit e0dcc10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pluginInteropServer/plugins/simplePasswordTree.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Experimental, Field, JsonProof, MerkleTree, Poseidon, verify } from "sn
22
import ProvePasswordInTreeProgram, { PASSWORD_TREE_HEIGHT, PasswordTreePublicInput, PasswordTreeWitness } from "../zkPrograms/passwordTreeProof";
33
import { PluginType } from "../plugin";
44

5-
const PasswordInTreeProverClass = Experimental.ZkProgram.Proof(ProvePasswordInTreeProgram);
5+
const PasswordInTreeProofClass = Experimental.ZkProgram.Proof(ProvePasswordInTreeProgram);
66

77
abstract class TreeStorage {
88
abstract getRoot(): Promise<Field>;
@@ -53,7 +53,7 @@ const verifyAndGetRoleProgram = async (
5353
if (!verify(jsonProof, verificationKey)) {
5454
return [false, 'proof invalid'];
5555
}
56-
const proof = PasswordInTreeProverClass.fromJSON(jsonProof);
56+
const proof = PasswordInTreeProofClass.fromJSON(jsonProof);
5757
const role = await storage.getRole(proof.publicInput.witness.calculateIndex().toBigInt());
5858
if (!role) { return [undefined, 'unknown public input']; }
5959
return [role, 'role proved'];

0 commit comments

Comments
 (0)