This repository has been archived by the owner on May 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
05cae7d
commit 8454c02
Showing
8 changed files
with
566 additions
and
26 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
export interface LEVLEICredential { | ||
i: string; | ||
dt: string; | ||
LEI: string; | ||
} | ||
export interface LE_VLEI_EDGES { | ||
d: string, | ||
qvi: QVI_VLEI_EDGE | ||
} | ||
export interface QVI_VLEI_EDGE { | ||
n: string,//issuer of the credential | ||
s: "EBfdlu8R27Fbx-ehrqwImnK-8Cm79sqbAQ4MmvEAYqao", //subject of the credential | ||
} | ||
|
||
export interface ECRVLEICredential { | ||
i: string; // issuer | ||
dt: string; // date | ||
LEI: string; // LEI | ||
personLegalName: string; // person's legal name to which the role is assigned | ||
engagementContextRole: string; // TODO: find list of roles | ||
} | ||
export interface ECR_AUTH_EDGES { | ||
d: string, | ||
auth: ECR_AUTH_EDGE, | ||
} | ||
interface ECR_AUTH_EDGE { | ||
n: string, //SAID of the ACDC to which the edge connects | ||
s: "EH6ekLjSr8V32WyFbGe1zXjTzFs9PkTYmupJ9H65O14g", | ||
o: "I2I", | ||
} | ||
export interface ECR_LE_EDGES { | ||
d: string, | ||
le: ECR_LE_EDGE, | ||
} | ||
interface ECR_LE_EDGE { | ||
n: string, //SAID of the ACDC to which the edge connects | ||
s: "ENPXp1vQzRF6JwIuS-mp2U8Uf1MoADoP_GqQ62VsDZWY" | ||
} | ||
|
||
export interface OORVLEICredential { | ||
i: string; // issuer | ||
dt: string; // date | ||
LEI: string; // LEI | ||
personLegalName: string; // person's legal name to which the role is assigned | ||
officialRole: string; // TODO: find list of roles | ||
} | ||
export interface OOR_AUTH_EDGES { | ||
d: string, | ||
auth: OOR_AUTH_EDGE, | ||
} | ||
interface OOR_AUTH_EDGE { | ||
n: string, //SAID of the ACDC to which the edge connects | ||
s: "EKA57bKBKxr_kN7iN5i7lMUxpMG-s19dRcmov1iDxz-E", | ||
o: "I2I", | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
export const DONE = "done"; | ||
export const NAME = "name"; | ||
export const RESPONSE = "response"; | ||
const DONE = "done"; | ||
const NAME = "name"; | ||
const RESPONSE = "response"; | ||
import { SignifyClient } from "signify-ts"; | ||
|
||
export const waitKeriaOp = async (client: SignifyClient, op: any) => { | ||
const ops = client.operations(); | ||
while (!op[DONE]) { | ||
op = await ops.get(op[NAME]); | ||
await new Promise((resolve) => setTimeout(resolve, 1000)); | ||
} | ||
return op[RESPONSE]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import {SignifyClient} from "signify-ts"; | ||
|
||
export const QVI_CREDENTIAL_REGISTRY = "qvi_credential_registry"; | ||
export const registry = async (client: SignifyClient, name: string) => { | ||
export const getQviRegistry = async (client: SignifyClient, name: string) => { | ||
return await client.registries().list(name); | ||
}; |
Oops, something went wrong.