Skip to content

Commit

Permalink
fix: pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
elribonazo committed Apr 27, 2024
1 parent d9077b7 commit 09b6c51
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions src/domain/buildingBlocks/Pollux.ts
Expand Up @@ -11,35 +11,7 @@ type CredentialRequestTuple<
> = [T1, T2];


export type PresentationJWTOptions = {
jwtAlg?: string[],
}

export class PresentationOptions {
public name: string;
public purpose: string;
public challenge: string;
public domain: string;
public jwt?: PresentationJWTOptions

constructor(
options: {
name?: string,
purpose?: string,
challenge: string,
domain?: string,
jwt?: PresentationJWTOptions
}
) {
this.name = options.name ?? "Presentation";
this.purpose = options.purpose ?? "Verifying Credentials";
this.challenge = options.challenge;
this.domain = options.domain ?? 'N/A';
this.jwt = options.jwt ?? {
jwtAlg: ['ES256K'],
};
}
}

/**
* Pollux
Expand Down Expand Up @@ -113,6 +85,34 @@ export interface Pollux {
}

export namespace Pollux {
export type PresentationJWTOptions = {
jwtAlg?: string[],
}
export class PresentationOptions {
public name: string;
public purpose: string;
public challenge: string;
public domain: string;
public jwt?: PresentationJWTOptions

constructor(
options: {
name?: string,
purpose?: string,
challenge: string,
domain?: string,
jwt?: PresentationJWTOptions
}
) {
this.name = options.name ?? "Presentation";
this.purpose = options.purpose ?? "Verifying Credentials";
this.challenge = options.challenge;
this.domain = options.domain ?? 'N/A';
this.jwt = options.jwt ?? {
jwtAlg: ['ES256K'],
};
}
}
export namespace verifyPresentationSubmission {
export type options = options.Anoncreds | options.JWT;
export namespace options {
Expand Down

0 comments on commit 09b6c51

Please sign in to comment.