v0.1.0
- The
getDid,getIdentityByAliasandcreateDidmethod returnIdentityAccountinstead ofAccount. IdentityAccounthas been added as a helper class to bind encryption and credential related methods to a did conveniently, preventing the need to pass arround anAccounteach 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");credentialshave been moved to be underIdentityAccountinstead ofIdentityManagercredentials.create()method now takes a single object of props which is of typeICreateCredentialPropscredentials.create()method now uses the newRevocationBitmap2022technique to issue a credential.credentials.revokeCredential()method now take akeyIndexas parameter instead of aCredential- Added
attachEncryptionMethod,encryptDataanddecryptDatamethods toIdentityAccount.