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

ParameterTypeDescription

@context

string[]

Context URLs for the attestation.

type

string[]

Types of the attestation.

issuer

string

The issuer of the attestation.

issuanceDate

string

The date the attestation was issued.

credentialSubject

object

Contains details about the user and application.

proof

object

Contains passport proof.

dscProof

object

Contains DSC proof details for verification.

dsc

object

Contains DSC details.

OpenPassportDynamicAttestation

The OpenPassportDynamicAttestation class extends OpenPassportAttestation and provides methods to parse and retrieve specific attributes from the attestation.

Functions

FunctionParametersDescriptionOutput

getUserId

None

Retrieves the user ID from the parsed public signals.

string

getNullifier

None

Retrieves the nullifier from the parsed public signals.

string

getCommitment

None

Retrieves the commitment from the parsed public signals.

string

getNationality

None

Retrieves the nationality from the unpacked reveal data.

string

getCSCAMerkleRoot

None

Retrieves the CSCAMerkleRoot from the DSC proof public signals.

string

Last updated