Skip to content

v0.1.0

Choose a tag to compare

@coodos coodos released this 04 Jul 12:10
· 77 commits to dev since this release
444bed4
  1. The getDid, getIdentityByAlias and createDid method return IdentityAccount instead of Account.
  2. IdentityAccount has been added as a helper class to bind encryption and credential related methods to a did conveniently, preventing the need to pass arround an Account each time you need to do something with an identity.
    instead of having to
const identityManager = IdentityManager.newInstance({ ...props });
// did here was of type `Account`
const did = await identityManager.createDid("foobar");
await identityManager.attachSigningMehtod(did, "signing-method");

we can do

const identityManager = IdentityManager.newInstance({ ...props });
// did here is of type `IdentityAccount`
const did =  identityManager.createDid("foobar");
did.attachSigningMethod("#signing-method");
  1. credentials have been moved to be under IdentityAccount instead of IdentityManager
  2. credentials.create() method now takes a single object of props which is of type ICreateCredentialProps
  3. credentials.create() method now uses the new RevocationBitmap2022 technique to issue a credential.
  4. credentials.revokeCredential() method now take a keyIndex as parameter instead of a Credential
  5. Added attachEncryptionMethod, encryptData and decryptData methods to IdentityAccount.