Skip to content

Commit

Permalink
add refs for inputs generations
Browse files Browse the repository at this point in the history
  • Loading branch information
lukachi committed Mar 18, 2024
1 parent 1cf65d0 commit aac1b49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/zkp-iden3/src/instances/zkp-gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ export class ZkpGen {
return circuits;
}

// https://github.com/iden3/go-circuits/blob/main/credentialAtomicQuerySigV2OnChain.go#L48
generateQuerySigV2OnChainInputs() {
if (!this.circuitClaim.signatureProof) {
throw new TypeError('circuitClaimData.signatureProof is not defined');
Expand Down Expand Up @@ -361,6 +362,7 @@ export class ZkpGen {
});
}

// https://github.com/iden3/go-circuits/blob/main/credentialAtomicQuerySigV2.go#L35
generateQuerySigV2Inputs() {
if (!this.circuitClaim.signatureProof) {
throw new TypeError('circuitClaimData.signatureProof is not defined');
Expand Down Expand Up @@ -444,6 +446,7 @@ export class ZkpGen {
});
}

// https://github.com/iden3/go-circuits/blob/main/credentialAtomicQueryMTPV2.go#L34
generateQueryMTPV2Inputs() {
if (!this.circuitClaim.incProof) {
throw new TypeError('circuitClaimData.incProof is not defined');
Expand Down Expand Up @@ -511,6 +514,7 @@ export class ZkpGen {
});
}

// https://github.com/iden3/go-circuits/blob/main/credentialAtomicQueryMTPV2OnChain.go#L46
generateQueryMTPV2OnChainInputs() {
if (!this.circuitClaim.incProof) {
throw new TypeError('circuitClaimData.incProof is not defined');
Expand Down

0 comments on commit aac1b49

Please sign in to comment.