Skip to content

Commit

Permalink
MInor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolezhniuk committed Jul 21, 2023
1 parent 8146377 commit 4cfdf4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/iden3comm/handlers/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/proof/proof-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -917,7 +917,7 @@ export class ProofService implements IProofService {
return true;
}

async findCredentialToProve(did: DID, query: ProofQuery): Promise<W3CCredential> {
async getNonRevokedCredential(did: DID, query: ProofQuery): Promise<W3CCredential> {
const credentials = await this._identityWallet.findOwnedCredentialsByDID(did, query);

if (!credentials.length) {
Expand Down

0 comments on commit 4cfdf4b

Please sign in to comment.