Skip to content

Releases: evannetwork/api-blockchain-core

v2.20.0

05 Aug 14:12
Compare
Choose a tag to compare

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 for Onboarding.createProfile dataKey save

v2.19.0

05 Aug 14:12
Compare
Choose a tag to compare

Features

  • add sourceIdentity as optional parameter for setDidDocumentOffline 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 and getIdentityAccessList for managing access to identities
  • A DID document's @context and controller properties can now also be arrays
  • ensure support for Runtimes useIdentity flag in entire library
  • update following modules for useIdentity support
    • DigitalTwin
    • Onboarding
    • Payments (limited, will undergo further changes in future)
    • Verifications
    • Votings
  • added EvanIdentity as authorization parameter to result of utils.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

05 Mar 14:33
Compare
Choose a tag to compare

Features

  • add methods deactivateDidDocument and didIsDeactivated to check and handle DID deactivation status
  • improve performance of shareProperties, unshareProperties, setContainerShareConfigs and related operations in Container
  • add methods deactivateDidDocument and didIsDeactivated to check and handle DID deactivation status
  • added additional properties updated, created, and proof to DID documents
  • added proof validation to getDidDocument (only for documents that actually contain a proof)
  • export config and runtimeConfig by createDefaultRuntime
  • introduced interfaces for did documents getDidDocument, setDidDocument, and setDidDocumentOffline

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 to binary
  • 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 with controller
  • fix pending contract members after unshare
  • update verification keys for onboarding, when useIdentity is enabled
  • reset activeIdentity within createOfflineProfile when useIdentity is enabled

v2.17.0

11 Feb 10:28
Compare
Choose a tag to compare

Features

  • add support for identity based accounts to KeyExchange, Sharing and Profile modules
  • update test setup to support identity based accounts
  • adding DID generation upon onboarding
  • allow plugins property within DigitalTwin.create to create initial containers
  • add DigitalTwin.exportAsTemplate to copy a existing twin configuration
  • ensure DigitalTwin and Container description to use at least dbcpVersion 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

08 Jan 13:42
Compare
Choose a tag to compare

Features

  • add getPublicKey implementation to SignerIdentity
  • 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 finalize SignerIdenty instantiation
  • add getService, setService to DidResolver
  • add Vc module for managing VC documents and revocations

Fixes

  • fix Container documentation links and add warning to ContainerUnshareConfig documentation
  • add interfaces used in exported classes to export list
  • update pre-commit hook to use eslint for typescript

v2.15.0

08 Jan 13:42
Compare
Choose a tag to compare

Features

  • add setContainerShareConfigs to Container API
  • add removeEntries to Container API
  • only allow unshareProperties for owner, if force attribute is set
  • add remove function to Ipfs
  • 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 in formatToV2 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 to index.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 from Ipfs

v2.14.1

06 Nov 14:50
Compare
Choose a tag to compare

Fixes

  • export missing unshareProperties from index.ts
  • fix handling of empty values in mappings of data contracts
  • fix racing condition issue in sharing

v2.14.0

05 Nov 11:12
Compare
Choose a tag to compare

Features

  • use container logic for profile management
  • update onboarding logic to fit current profile setup
  • add more clearnup and hardening to unshareProperties for Container 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

v2.13.0

08 Oct 08:44
Compare
Choose a tag to compare

Features

  • add setProfileProperties and getProfileProperties

Fixes

  • remove custom agpl appendix

v2.12.0

19 Sep 07:29
Compare
Choose a tag to compare

Features

  • add generic support for preparing and executing transactions via identity

Fixes

  • fix notEnsRootOwner check to allow each account that gets the /evan account from the ens root owner
  • fix typos in variable naming