Skip to main content

Get proof schema details

Returns details on a proof schema.

Function

getProofSchema(
proofSchemaId: ProofSchema["id"]
): Promise<ProofSchema>

Parameters

  • proofSchemaId - UUID of proof schema.

Return value

export interface ProofSchema {
id: string;
createdDate: string;
lastModified: string;
name: string;
organisationId: string;
expireDuration: number;
proofInputSchemas: ProofInputSchema[];
}

Fields

  • expireDuration - Defines the length of storage of received proofs, in seconds. After the defined duration, the received proof and its data are deleted from the system. If 0, the proofs received when using this proof schema will not be deleted.

  • proofInputSchemas - The collection of attributes, from one or more credentials, being requested.