From 92bf4081dda86b35b79ba3809e6b1eba87bfed8f Mon Sep 17 00:00:00 2001 From: Andrew Whitehead Date: Wed, 14 Jul 2021 16:25:33 -0700 Subject: [PATCH 1/2] update to askar 0.2 release Signed-off-by: Andrew Whitehead --- aries_cloudagent/wallet/askar.py | 7 +++++-- requirements.askar.txt | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/aries_cloudagent/wallet/askar.py b/aries_cloudagent/wallet/askar.py index fd8185b3fa..cf3b917b01 100644 --- a/aries_cloudagent/wallet/askar.py +++ b/aries_cloudagent/wallet/askar.py @@ -11,12 +11,13 @@ crypto_box, AskarError, AskarErrorCode, + Entry, Key, KeyAlg, + SeedMethod, Session, ) from aries_askar.bindings import key_get_secret_bytes -from aries_askar.store import Entry from marshmallow import ValidationError from ..askar.profile import AskarProfileSession @@ -724,10 +725,12 @@ def _create_keypair(key_type: KeyType, seed: Union[str, bytes] = None) -> Key: """Instantiate a new keypair with an optional seed value.""" if key_type == KeyType.ED25519: alg = KeyAlg.ED25519 + method = None # elif key_type == KeyType.BLS12381G1: # alg = KeyAlg.BLS12_381_G1 elif key_type == KeyType.BLS12381G2: alg = KeyAlg.BLS12_381_G2 + method = SeedMethod.BlsKeyGen # elif key_type == KeyType.BLS12381G1G2: # alg = KeyAlg.BLS12_381_G1G2 else: @@ -739,7 +742,7 @@ def _create_keypair(key_type: KeyType, seed: Union[str, bytes] = None) -> Key: seed = validate_seed(seed) return Key.from_secret_bytes(alg, seed) else: - return Key.from_seed(alg, seed) + return Key.from_seed(alg, seed, method=method) except AskarError as err: if err.code == AskarErrorCode.INPUT: raise WalletError("Invalid seed for key generation") from None diff --git a/requirements.askar.txt b/requirements.askar.txt index 98cf1c0caf..55721751ad 100644 --- a/requirements.askar.txt +++ b/requirements.askar.txt @@ -1,3 +1,3 @@ -aries-askar==0.2.0-pre.5 +aries-askar~=0.2.0 indy-credx~=0.3 indy-vdr~=0.3 From c1ef5a2563fb75a17f5a5a33f33775831df2dc76 Mon Sep 17 00:00:00 2001 From: Andrew Whitehead Date: Wed, 14 Jul 2021 16:25:48 -0700 Subject: [PATCH 2/2] update version to 0.7.0; update changelog Signed-off-by: Andrew Whitehead --- CHANGELOG.md | 20 ++++++++++++++++++++ aries_cloudagent/version.py | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 24c4120cb2..dc2563344b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,23 @@ +# 0.7.0 + +## July 14, 2021 + +Another significant release, this version adds support for multiple new protocols, credential formats, and extension methods. + +- Support for [W3C Standard Verifiable Credentials](https://www.w3.org/TR/vc-data-model/) based on JSON-LD using LD-Signatures and [BBS+ Signatures](https://w3c-ccg.github.io/ldp-bbs2020/), contributed by [Animo Solutions](https://animo.id/) - [#1061](https://github.com/hyperledger/aries-cloudagent-python/pull/1061) +- [Present Proof V2](https://github.com/hyperledger/aries-rfcs/tree/master/features/0454-present-proof-v2) including support for [DIF Presentation Exchange](https://identity.foundation/presentation-exchange/) - [#1125](https://github.com/hyperledger/aries-cloudagent-python/pull/1125) +- Pluggable DID Resolver (with a did:web resolver) with fallback to an external DID universal resolver, contributed by [Indicio](https://indicio.tech/) - [#1070](https://github.com/hyperledger/aries-cloudagent-python/pull/1070) +- Updates and extensions to ledger transaction endorsement via the [Sign Attachment Protocol](https://github.com/hyperledger/aries-rfcs/pull/586), contributed by [AyanWorks](https://www.ayanworks.com/) - [#1134](https://github.com/hyperledger/aries-cloudagent-python/pull/1134), [#1200](https://github.com/hyperledger/aries-cloudagent-python/pull/1200) +- Upgrades to Demos to add support for Credential Exchange 2.0 and W3C Verifiable Credentials [#1235](https://github.com/hyperledger/aries-cloudagent-python/pull/1235) +- Alpha support for the Indy/Aries Shared Components ([indy-vdr](https://github.com/hyperledger/indy-vdr), [indy-credx](https://github.com/hyperledger/indy-shared-rs) and [aries-askar](https://github.com/hyperledger/aries-askar)), which enable running ACA-Py without using Indy-SDK, while still supporting the use of Indy as a ledger, and Indy AnonCreds verifiable credentials [#1267](https://github.com/hyperledger/aries-cloudagent-python/pull/1267) +- A new event bus for distributing internally generated ACA-Py events to controllers and other listeners, contributed by [Indicio](https://indicio.tech/) - [#1063](https://github.com/hyperledger/aries-cloudagent-python/pull/1063) +- Enable operation without Indy ledger support if not needed +- Performance fix for deployments with large numbers of DIDs/connections [#1249](https://github.com/hyperledger/aries-cloudagent-python/pull/1249) +- Simplify the creation/handling of plugin protocols [#1086](https://github.com/hyperledger/aries-cloudagent-python/pull/1086), [#1133](https://github.com/hyperledger/aries-cloudagent-python/pull/1133), [#1226](https://github.com/hyperledger/aries-cloudagent-python/pull/1226) +- DID Exchange implicit invitation handling [#1174](https://github.com/hyperledger/aries-cloudagent-python/pull/1174) +- Add support for Indy 1.16 predicates (restrictions on predicates based on attribute name and value) [#1213](https://github.com/hyperledger/aries-cloudagent-python/pull/1213) +- BDD Tests run via GitHub Actions [#1046](https://github.com/hyperledger/aries-cloudagent-python/pull/1046) + # 0.6.0 ## February 25, 2021 diff --git a/aries_cloudagent/version.py b/aries_cloudagent/version.py index deabb96d85..d6d16e16b1 100644 --- a/aries_cloudagent/version.py +++ b/aries_cloudagent/version.py @@ -1,3 +1,3 @@ """Library version information.""" -__version__ = "0.7.0-rc1" +__version__ = "0.7.0"