diff --git a/src/iden3comm/handlers/auth.ts b/src/iden3comm/handlers/auth.ts index 53467cfc..30e74656 100644 --- a/src/iden3comm/handlers/auth.ts +++ b/src/iden3comm/handlers/auth.ts @@ -86,7 +86,6 @@ export class AuthHandler implements IAuthHandler { * @param {IPackageManager} _packerMgr - package manager to unpack message envelope * @param {IProofService} _proofService - proof service to verify zk proofs * - * */ constructor( private readonly _packerMgr: IPackageManager, diff --git a/src/proof/proof-service.ts b/src/proof/proof-service.ts index e428f959..0e23f497 100644 --- a/src/proof/proof-service.ts +++ b/src/proof/proof-service.ts @@ -200,7 +200,7 @@ export class ProofService implements IProofService { // find credential const credential = - opts.credential ?? (await this.findCredentialToProve(identifier, proofReq.query)); + opts.credential ?? (await this.getNonRevokedCredential(identifier, proofReq.query)); const { nonce: authProfileNonce, genesisDID } = await this._identityWallet.getGenesisDIDMetadata(identifier); @@ -917,7 +917,7 @@ export class ProofService implements IProofService { return true; } - async findCredentialToProve(did: DID, query: ProofQuery): Promise { + async getNonRevokedCredential(did: DID, query: ProofQuery): Promise { const credentials = await this._identityWallet.findOwnedCredentialsByDID(did, query); if (!credentials.length) {