Skip to main content

Import proof schema

Imports a shared proof schema to a mobile verifier. Proof schemas can be used to create proof requests.

Make an HTTP request on the URL retrieved from the shared proof schema to preview the schema. To import, pass the schema along with the organization ID of the mobile verifier.

Function

importProofSchema(
request: ImportProofSchemaRequest
): Promise<string>

Parameters

export interface ImportProofSchemaRequest {
organisationId: string;
schema: ImportProofSchema;
}
export interface ImportProofSchema {
id: string;
createdDate: string;
lastModified: string;
name: string;
organisationId: string;
importedSourceUrl: string;
expireDuration: number;
proofInputSchemas: ImportProofSchemaInputSchema[];
}

Fields

  • schema - Shared proof schema to be imported.

  • organisationId - The organization ID of the mobile verifier.

Return value

The UUID of imported proof schema is returned.