Skip to content

0.30.0

Compare
Choose a tag to compare
@rflechtner rflechtner released this 24 Nov 12:49
· 116 commits to master since this release

What's Changed

Type definitions for runtime version 10800

This release updates type definitions for the runtime upgrade 10800 that has been released as part of KILTprotocol/kilt-node v1.8.0.
These definitions enable the use of new staking runtime api calls that are part of the staking pallet refactor proposed in that upgrade.

Warning
Type definitions released as part of SDK v0.29.0 unfortunately are not compatible with the upcoming runtime upgrade.
If you are using this version you will need to upgrade to 0.30.0 in order to continue to use DID runtime api calls (e.g. for querying DID documents and linked accounts).

Improved Did signature verification logic on credential presentations and quotes

This includes:

  • We added two optional flags (expectedSigner and allowUpgraded) to the verifyDidSignature function which allow making assertions about the signer DID.
  • Using these flags we now fail presentation verification if the signer is unrelated to the credential owner. A presentation can be signed by a full DID that resulted from upgrading the credential owner DID.
  • We expanded the set of signed properties of the IQuoteAgreement. From now on this set includes the credential rootHash and the claimerDid. To enforce this, we provide a new function (verifyQuoteAgreement) to verify signatures over this object.
  • Similar to the improvement on presentation verification, verifyQuoteAgreement as well as verifyAttesterSignedQuote fail if claimerSignature and claimerDid or attesterSignature and attesterDid are unrelated. Here, signatures by upgraded DIDs are not permitted.

All changes:

  • feat: compare owner and signer of credential on signature verification by @rflechtner in #674
  • feat: improve quote verification by @rflechtner in #675
  • chore: update develop metadata and migrate to new DID runtime API in integration tests by @ntn-x2 in #678
  • fix: type-definitions chain names by @wischli in #673
  • chore: update type definitions by @ntn-x2 in #679
  • fix: 0.30.0-rc.1 issues by @rflechtner in #690

Full Changelog: 0.29.0...0.30.0