Skip to content

Commit

Permalink
fix description for non revocation tree
Browse files Browse the repository at this point in the history
  • Loading branch information
lukachi committed Mar 18, 2024
1 parent 189967d commit fb8ec6e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/zkp-iden3/src/instances/zkp-gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class ZkpGen {
coreStateHash: string,
operationGistHash: string,
): Promise<ZKProof> {
// first thing first we need to get sig coreClaim and mpt coreClaim,
// first thing first we need to get sig coreClaim and MTP coreClaim,
// because coreClaim - is a set of data, where user's details is encoded,
// and we proof exactly this data
const { revStatus, coreClaim } = await checkVCAndGetCoreClaim(
Expand All @@ -105,7 +105,7 @@ export class ZkpGen {
);

this.commonInputsDetails = {
// If we here, that means proof is not in revocation tree,
// If we here, that means claim's revocation nonce is not in the revocation tree,
// it could be named as "non revocation proof" (nonRevProof, ...etc)
// We need it to populate inputs later, so let's save it
claimNonRevStatus: revStatus,
Expand Down Expand Up @@ -176,8 +176,9 @@ export class ZkpGen {
throw new TypeError('circuitClaimData.signatureProof is not defined');
}

// preparedCredential.revStatus - says, that proof is not a part of revocation tree
// and we need to prepare aux data, to prove it
// preparedCredential.revStatus - says,
// that claim's revocation nonce is not in the revocation tree.
// And we need to prepare aux data, to prove it
// these aux variables also need to populate inputs later
const nodeAuxIssuerAuthNonRev = getNodeAuxValue(
this.commonInputsDetails.circuitClaim.signatureProof.issuerAuthNonRevProof
Expand Down

0 comments on commit fb8ec6e

Please sign in to comment.