Skip to content

v1.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 01 Nov 01:59
· 8 commits to master since this release
1d91eea

1.0.0 (2023-11-01)

Bug Fixes

chore

  • update to npm 7, drop cjs support (e6333d2)

Features

BREAKING CHANGES

  • drop cjs support, drop node 10 support
  • The graphiteWidth option has been removed.
  • behaviour of the type guard is much more restrictive than before. While we could imagine this as a fix, I think it's actually quite a major change in behaviour and should be tagged as is.
  • ProofType, SignatureAlgorithm and ProofPurpose enums are not available anymore. They have been transformed to literal.
  • rename VerifiableCredentialProofBase to VerifiableCredentialWrappedProof
  • rename VerifiableCredentialProofSigned to VerifiableCredentialSignedProof

improved the following methods:

  • isWrappedV3Document
  • isWrappedV2Document
  • isSignedWrappedV2Document
  • isSignedWrappedV3Document
  • Signed document in the previous format is no longer supported

Co-authored-by: Raymond Yeh [email protected]

  • New schema to be w3c compliant

Changes are:

  • issuers is not an array anymore. Consequence, proof.value is not an array anymore
  • issuer.id is a new mandatory field which must be an URI
  • issuer.identityProof.subject has been remove because it's not needed anymore
  • @context has been added for w3c compliance to help consumer provide terminology. It's an optional field
  • id has been updated to follow w3c compliance. It's an optional uri about the subject of the VC
  • reference has been added and is equal to the previous id
  • type has been added as the type of the VC (w3c compliance)
  • validFrom has been added (w3c compliance)
  • validUntil has been added (w3c compliance). It's an optional field
  • attachments.type has been updated to follow w3c compliance. It refers to a valid evidence type.
  • attachments.mimeType has been added and is equal to the previous attachments.type
  • rename $template to template

Adding v2 schema which is a simple version of schema used in tradetrust
and opencerts

Generate types from schema. Types are exported

Update wording:

  • sign => wrap
  • SignedDocument => WrappedDocument