Skip to content

Commit

Permalink
Create new connection invitation (#546)
Browse files Browse the repository at this point in the history
* feat: modify connection invitation url

Signed-off-by: bhavanakarwade <bhavana.karwade@ayanworks.com>

* changed message pattern

Signed-off-by: bhavanakarwade <bhavana.karwade@ayanworks.com>

* fix: optimized conditions

Signed-off-by: bhavanakarwade <bhavana.karwade@ayanworks.com>

* fix: cred-def restrictions

Signed-off-by: bhavanakarwade <bhavana.karwade@ayanworks.com>

---------

Signed-off-by: bhavanakarwade <bhavana.karwade@ayanworks.com>
Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com>
  • Loading branch information
bhavanakarwade authored and KulkarniShashank committed Sep 11, 2024
1 parent b0b47a6 commit b308cf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 32 deletions.
30 changes: 0 additions & 30 deletions apps/issuance/interfaces/issuance.interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,33 +228,3 @@ export interface OrgAgent {
orgAgentTypeId: string;
tenantId: string;
}

interface IData{
'base64': string
}

interface IRequestAttach{
'@id': string,
'mime-type': string,
data: IData;
}

interface IService {
id: string;
serviceEndpoint: string;
type: string;
recipientKeys: string[];
routingKeys: string[];
accept: string[];
}

// This is the Interface for response of out of band issuance
export interface IOobIssuanceInvitation {
'@type': string;
'@id': string;
label: string;
accept: string[];
handshake_protocols: string[];
services: IService[];
'requests~attach': IRequestAttach[]
}
4 changes: 2 additions & 2 deletions apps/verification/src/verification.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ export class VerificationService {
const requestedPredicates = {};
const {attributes} = proofRequestpayload;
if (attributes) {
requestedAttributes = Object.fromEntries(attributes.map((attribute, index) => {
requestedAttributes = Object.fromEntries(proofRequestpayload.attributes.map((attribute, index) => {

const attributeElement = attribute.attributeName || attribute.attributeNames;
const attributeReferent = `additionalProp${index + 1}`;
Expand All @@ -527,7 +527,7 @@ export class VerificationService {
return [
attributeReferent,
{
[attributeKey]: attributeElement,
name: attributeElement,
restrictions: [
{
cred_def_id: proofRequestpayload.attributes[index].credDefId ? proofRequestpayload.attributes[index].credDefId : undefined,
Expand Down

0 comments on commit b308cf6

Please sign in to comment.