OpenPassport Attestation
The OpenPassportAttestation
interface represents the structure of an attestation used in the OpenPassport system. It includes details about the credential subject, proof, and document signing certificate (DSC) proof. It has been designed according to W3C standards.
Parameters
Parameter | Type | Description |
---|---|---|
|
| Context URLs for the attestation. |
|
| Types of the attestation. |
|
| The issuer of the attestation. |
|
| The date the attestation was issued. |
|
| Contains details about the user and application. |
|
| Contains passport proof. |
|
| Contains DSC proof details for verification. |
|
| Contains DSC details. |
OpenPassportDynamicAttestation
OpenPassportDynamicAttestation
The OpenPassportDynamicAttestation
class extends OpenPassportAttestation
and provides methods to parse and retrieve specific attributes from the attestation.
Functions
Function | Parameters | Description | Output |
---|---|---|---|
| None | Retrieves the user ID from the parsed public signals. |
|
| None | Retrieves the nullifier from the parsed public signals. |
|
| None | Retrieves the commitment from the parsed public signals. |
|
| None | Retrieves the nationality from the unpacked reveal data. |
|
| None | Retrieves the CSCAMerkleRoot from the DSC proof public signals. |
|
Last updated