Skip to content

0.33.0

Compare
Choose a tag to compare
@rflechtner rflechtner released this 08 Jun 10:16
· 15 commits to master since this release
b166384

Breaking Changes

Credential Verification

  • Credential.verifyCredential & Credential.verifyPresentation will now check for an on-chain attestation (requires an open connection to a full node) and throw if the credential has not been attested.
    These functions now return the credential with two properties added: revoked (indicates whether the attestation was revoked) and attester (indicates the issuer of the attestation).
    To run only off-line integrity checks, use verifyWellFormed instead.
    • As part of the change to the credential verification logic, we introduced a function called refreshRevocationStatus, which is tailored towards re-checking the validity of an already verified credential to make sure it has not been revoked in the meantime.
  • The function verifyAgainstCType has been removed. Use CType.verifyClaimAgainstSchema(credential.claim.contents, ctype) instead, or simply use the optional ctype parameter on Credential.verifyWellFormed, Credential.verifyCredential & Credential.verifyPresentation.

CType Creation

  • We also introduced a new CType metaschema which allows additional features on CTypes, which is recommended to be used on all new CTypes.
    CType.fromProperties now defaults to using the new metaschema, which impacts the CType hash & id. If you need to recreate a CType using the old metaschema, set the newly introduced third parameter of this function to 'draft-01'.

Misc

  • Updating to recent versions of polkadot/api and polkadot/common dependencies required ending support for node 14.
  • We removed the BlockchainApiMissingError in order to reduce dependencies of the @kiltprotocol/config package. If no polkadot api object has been provided before calling chain-related functions, this will now throw a generic error instead.

What's Changed

Features

Bugfixes

Other

Full Changelog: 0.32.1...0.33.0