Skip to content

Commit

Permalink
remove linkNonce from query
Browse files Browse the repository at this point in the history
volodymyr-basiuk committed Dec 7, 2023
1 parent a24899d commit 4df45ee
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/proof/proof-service.ts
Original file line number Diff line number Diff line change
@@ -72,6 +72,7 @@ export interface ProofGenerationOptions {
credential?: W3CCredential;
verifierDID?: DID;
authEnabled?: number;
linkNonce?: bigint;
}

export interface DIDProfileMetadata {
@@ -626,9 +627,7 @@ export class ProofService implements IProofService {
circuitInputs.currentTimeStamp = getUnixTimestamp(new Date());

circuitInputs.proofType = proofType;
circuitInputs.linkNonce = proofReq.query.linkNonce
? BigInt(proofReq.query.linkNonce.toString())
: BigInt(0);
circuitInputs.linkNonce = params.linkNonce ?? BigInt(0);
circuitInputs.verifierID = params.verifierDID ? DID.idFromDID(params.verifierDID) : undefined;
circuitInputs.nullifierSessionID = proofReq.params?.nullifierSessionID
? BigInt(proofReq.params?.nullifierSessionID?.toString())
@@ -689,9 +688,7 @@ export class ProofService implements IProofService {
circuitInputs.currentTimeStamp = getUnixTimestamp(new Date());

circuitInputs.proofType = proofType;
circuitInputs.linkNonce = proofReq.query.linkNonce
? BigInt(proofReq.query.linkNonce.toString())
: BigInt(0);
circuitInputs.linkNonce = params.linkNonce ?? BigInt(0);
circuitInputs.verifierID = params.verifierDID ? DID.idFromDID(params.verifierDID) : undefined;
circuitInputs.nullifierSessionID = proofReq.params?.nullifierSessionID
? BigInt(proofReq.params?.nullifierSessionID?.toString())

0 comments on commit 4df45ee

Please sign in to comment.