Releases: evannetwork/api-blockchain-core
Releases · evannetwork/api-blockchain-core
v2.20.0
Features
- update identity contracts' purpose handling
- to match updated purpose handling
VERSION_IDcan be used to decide which version to use- newer identities will have version 1
- keys can be added and removed with multiple purposes at once (
addMultiPurposeKey,removeMultiPurposeKey) - accounts with purpose 3 can only be removed by themselves
- only one account with purpose 3 is allowed per identity
- add experimental support for identities on substrate via
vade
Fixes
- use
activeIdentityforOnboarding.createProfiledataKey save
v2.19.0
Features
- add
sourceIdentityas optional parameter forsetDidDocumentOfflineto explicitly parse the signing identity - add check in
createOfflineProfilefor company profile type to create two profiles otherwise only create one - add method
fillProfileto fill empty profile - add method
getRuntimeForIdentityto create a runtime for a specific identity - add methods
setIdentityAccess,removeIdentityAccessandgetIdentityAccessListfor managing access to identities - A DID document's
@contextandcontrollerproperties can now also be arrays - ensure support for
RuntimesuseIdentityflag in entire library - update following modules for
useIdentitysupportDigitalTwinOnboardingPayments(limited, will undergo further changes in future)VerificationsVotings
- added
EvanIdentityas authorization parameter to result ofutils.getSmartAgentAuthHeaders(for usage sample have a look to edge-server-seed) - add
Identityclass and add functions for grant / remove access to act on behalf of identity - support identity salting for encryptionKey generation for
createDefaultRuntime
v2.18.0
Features
- add methods
deactivateDidDocumentanddidIsDeactivatedto check and handle DID deactivation status - improve performance of
shareProperties,unshareProperties,setContainerShareConfigsand related operations inContainer - add methods
deactivateDidDocumentanddidIsDeactivatedto check and handle DID deactivation status - added additional properties
updated,created, andproofto DID documents - added proof validation to
getDidDocument(only for documents that actually contain a proof) - export
configandruntimeConfigbycreateDefaultRuntime - introduced interfaces for did documents
getDidDocument,setDidDocument, andsetDidDocumentOffline
Fixes
- fix
credentialStatus.iduses short hand path for resolver links - add check for
getRevokeVcStatusto throw error when non existing VC is passed - fix
ipfsLibnow uses the configured port - fix
getListEntriesin the api docs - fix buffer-to-string conversion, try to decode to
utf8, if this fails, decode it tobinary - add
member-orderingrule to eslint config - fix
container.getListEntryto not throw an exception on call anymore - replaced deprecated property
ownerin DID publicKey fields withcontroller - fix pending contract members after unshare
- update verification keys for onboarding, when
useIdentityis enabled - reset
activeIdentitywithincreateOfflineProfilewhen useIdentity is enabled
v2.17.0
Features
- add support for identity based accounts to
KeyExchange,SharingandProfilemodules - update test setup to support identity based accounts
- adding DID generation upon onboarding
- allow
pluginsproperty withinDigitalTwin.createto create initial containers - add
DigitalTwin.exportAsTemplateto copy a existing twin configuration - ensure
DigitalTwinandContainerdescription to use at leastdbcpVersion2 - update root verification handling to use genesis account
- add lookup method for an identity's owner's address
- add deactivation mechanism for twins
- add
signer-identityto enable identity to getGasPrice using underlying account - add
setVerificationAndVcfunction to enable VC creation for verification - update
Verificationslogic and tests to support identity based account
Fixes
- use typescript version
3.7.4 - fix behavior of
DataContractfor unencrypted data - fix did public key handling to properly support proofs
- add checks for configured identity and account to prevent unintentional usage of active identity
- add support for custom DID registries for DID tests
v2.16.0
Features
- add
getPublicKeyimplementation toSignerIdentity - add
Didmodule for managing DID documents - add possiblity to instantiate a new
SignerIdentityin two steps- can be used to create circular structures if required
- first call constructor, you can omit
configargument - when rest (e.g. verifications) has been set up you can call
updateConfigto finalizeSignerIdentyinstantiation
- add
getService,setServicetoDidResolver - add
Vcmodule for managing VC documents and revocations
Fixes
- fix
Containerdocumentation links and add warning toContainerUnshareConfigdocumentation - add interfaces used in exported classes to export list
- update pre-commit hook to use eslint for typescript
v2.15.0
Features
- add
setContainerShareConfigstoContainerAPI - add
removeEntriestoContainerAPI - only allow
unsharePropertiesfor owner, if force attribute is set - add
removefunction toIpfs - implement
unPinFileHashfunction in dfs - remove old sharing ipfs hash within
saveSharingsToContract - add
signer-identityfor making transactions via identity contract - add tests for encryption/decryption with identity based profiles
Fixes
- move
expirationDateinformatToV2to details object - fix profile type iot device specification
- ensure that content keys, before they get shared, are added to the
Containerkeys - add
EncryptionWrapperCryptorType,EncryptionWrapperKeyType,EncryptionWrapperOptions,EncryptionWrappertoindex.tsexports - update naming of verifications (replace older occurrences of "validations" with "verifications")
Deprecations
- remove registration company name and use accountName for all
- remove
stopfunction fromIpfs
v2.14.1
v2.14.0
Features
- use container logic for profile management
- update onboarding logic to fit current profile setup
- add more clearnup and hardening to
unsharePropertiesforContainerAPI - add support to remove sharings to
SharingsAPI - improve support for working with profiles of other users via
ProfileAPI
Fixes
- fix race conditions in sharings update, which could occur when sharings are updated in parallel