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_ID
can 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
activeIdentity
forOnboarding.createProfile
dataKey save
v2.19.0
Features
- add
sourceIdentity
as optional parameter forsetDidDocumentOffline
to explicitly parse the signing identity - add check in
createOfflineProfile
for company profile type to create two profiles otherwise only create one - add method
fillProfile
to fill empty profile - add method
getRuntimeForIdentity
to create a runtime for a specific identity - add methods
setIdentityAccess
,removeIdentityAccess
andgetIdentityAccessList
for managing access to identities - A DID document's
@context
andcontroller
properties can now also be arrays - ensure support for
Runtime
suseIdentity
flag in entire library - update following modules for
useIdentity
supportDigitalTwin
Onboarding
Payments
(limited, will undergo further changes in future)Verifications
Votings
- added
EvanIdentity
as authorization parameter to result ofutils.getSmartAgentAuthHeaders
(for usage sample have a look to edge-server-seed) - add
Identity
class 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
deactivateDidDocument
anddidIsDeactivated
to check and handle DID deactivation status - improve performance of
shareProperties
,unshareProperties
,setContainerShareConfigs
and related operations inContainer
- add methods
deactivateDidDocument
anddidIsDeactivated
to check and handle DID deactivation status - added additional properties
updated
,created
, andproof
to DID documents - added proof validation to
getDidDocument
(only for documents that actually contain a proof) - export
config
andruntimeConfig
bycreateDefaultRuntime
- introduced interfaces for did documents
getDidDocument
,setDidDocument
, andsetDidDocumentOffline
Fixes
- fix
credentialStatus.id
uses short hand path for resolver links - add check for
getRevokeVcStatus
to throw error when non existing VC is passed - fix
ipfsLib
now uses the configured port - fix
getListEntries
in the api docs - fix buffer-to-string conversion, try to decode to
utf8
, if this fails, decode it tobinary
- add
member-ordering
rule to eslint config - fix
container.getListEntry
to not throw an exception on call anymore - replaced deprecated property
owner
in DID publicKey fields withcontroller
- fix pending contract members after unshare
- update verification keys for onboarding, when
useIdentity
is enabled - reset
activeIdentity
withincreateOfflineProfile
when useIdentity is enabled
v2.17.0
Features
- add support for identity based accounts to
KeyExchange
,Sharing
andProfile
modules - update test setup to support identity based accounts
- adding DID generation upon onboarding
- allow
plugins
property withinDigitalTwin.create
to create initial containers - add
DigitalTwin.exportAsTemplate
to copy a existing twin configuration - ensure
DigitalTwin
andContainer
description to use at leastdbcpVersion
2 - 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-identity
to enable identity to getGasPrice using underlying account - add
setVerificationAndVc
function to enable VC creation for verification - update
Verifications
logic and tests to support identity based account
Fixes
- use typescript version
3.7.4
- fix behavior of
DataContract
for 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
getPublicKey
implementation toSignerIdentity
- add
Did
module for managing DID documents - add possiblity to instantiate a new
SignerIdentity
in two steps- can be used to create circular structures if required
- first call constructor, you can omit
config
argument - when rest (e.g. verifications) has been set up you can call
updateConfig
to finalizeSignerIdenty
instantiation
- add
getService
,setService
toDidResolver
- add
Vc
module for managing VC documents and revocations
Fixes
- fix
Container
documentation links and add warning toContainerUnshareConfig
documentation - add interfaces used in exported classes to export list
- update pre-commit hook to use eslint for typescript
v2.15.0
Features
- add
setContainerShareConfigs
toContainer
API - add
removeEntries
toContainer
API - only allow
unshareProperties
for owner, if force attribute is set - add
remove
function toIpfs
- implement
unPinFileHash
function in dfs - remove old sharing ipfs hash within
saveSharingsToContract
- add
signer-identity
for making transactions via identity contract - add tests for encryption/decryption with identity based profiles
Fixes
- move
expirationDate
informatToV2
to details object - fix profile type iot device specification
- ensure that content keys, before they get shared, are added to the
Container
keys - add
EncryptionWrapperCryptorType
,EncryptionWrapperKeyType
,EncryptionWrapperOptions
,EncryptionWrapper
toindex.ts
exports - update naming of verifications (replace older occurrences of "validations" with "verifications")
Deprecations
- remove registration company name and use accountName for all
- remove
stop
function 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
unshareProperties
forContainer
API - add support to remove sharings to
Sharings
API - improve support for working with profiles of other users via
Profile
API
Fixes
- fix race conditions in sharings update, which could occur when sharings are updated in parallel