v2.0 to v4.0
Major changes from OA v2.0
This section briefly describes the changes from OpenAttestation (OA) v2.0 to v4.0. For more information and examples of these changes, refer to our guide on upgrading to v4.0.
Modified properties
The following properties that existed in OA v2.0 have been restructured or moved to newly named properties in v4.0 to comply with W3C Verifiable Credentials Data Model v2.0.
Credential Subject
Previously located at the root level of raw documents or nested under data
(if already wrapped/signed), the claims about the subject of the credential are now always nested under credentialSubject
.
Credential Status
Previously specified in issuers[i].revocation
, the revocation type and location are now specified in credentialStatus
and is now an optional property to be set if applicable.
Issuer
Instead of the original issuers
array in OA v2.0, v4.0 uses the W3C issuer
property containing similar data about the id, name, and identity proof of the document. To facilitate interoperability with other verifiers, there is now an added property issuer.type
which in the case of OA v4.0 should always be set to OpenAttestationIssuer
.