Skip to content

Commit d69320e

Browse files
jamshaleff137
andauthored
Release for acapy-agent v1.3.0 (#1712)
* 🎨 Rename Anoncreds to AnonCreds Standardises the naming convention, in alignment with openwallet-foundation/acapy#3573 Signed-off-by: ff137 <ff137@proton.me> * Upgade acapy-agent Signed-off-by: jamshale <jamiehalebc@gmail.com> * Update redis_events Signed-off-by: jamshale <jamiehalebc@gmail.com> * Cange integration test to use out-of-band Signed-off-by: jamshale <jamiehalebc@gmail.com> * Cange integration test to use out-of-band Signed-off-by: jamshale <jamiehalebc@gmail.com> * Fix usage of v1 connections Signed-off-by: jamshale <jamiehalebc@gmail.com> * More integration test fixes Signed-off-by: jamshale <jamiehalebc@gmail.com> * More integration test fixes Signed-off-by: jamshale <jamiehalebc@gmail.com> * Update RELEASES.md file Signed-off-by: jamshale <jamiehalebc@gmail.com> * Couple more integration tests on v1 connections Signed-off-by: jamshale <jamiehalebc@gmail.com> * Hopefully last update Signed-off-by: jamshale <jamiehalebc@gmail.com> --------- Signed-off-by: ff137 <ff137@proton.me> Signed-off-by: jamshale <jamiehalebc@gmail.com> Co-authored-by: ff137 <ff137@proton.me>
1 parent 404b15a commit d69320e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+2526
-2588
lines changed

RELEASES.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,30 @@
11
# Plugin Release Status
2+
## ACA-Py Release 1.3.0
3+
4+
| Plugin Name | Supported ACA-Py Release |
5+
| --- | --- |
6+
|basicmessage_storage | 1.3.0|
7+
|cheqd | 1.3.0|
8+
|connection_update | 1.3.0|
9+
|firebase_push_notifications | 1.3.0|
10+
|hedera | 1.3.0|
11+
|multitenant_provider | 1.3.0|
12+
|oid4vc | 1.3.0|
13+
|redis_events | 1.3.0|
14+
|rpc | 1.3.0|
15+
|status_list | 1.3.0|
16+
17+
### Plugins Upgraded For ACA-Py Release 1.3.0
18+
- basicmessage_storage
19+
- cheqd
20+
- connection_update
21+
- firebase_push_notifications
22+
- hedera
23+
- multitenant_provider
24+
- oid4vc
25+
- redis_events
26+
- rpc
27+
- status_list
228
## ACA-Py Release 1.2.4
329

430
| Plugin Name | Supported ACA-Py Release |

basicmessage_storage/integration/tests/__init__.py

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,25 +59,16 @@ def __init__(self, url: str):
5959

6060
@unwrap_json_response
6161
@fail_if_not_ok("Create invitation failed")
62-
def create_invitation(self, **kwargs):
62+
def create_invitation(self, body: dict, **kwargs):
6363
"""Create invitation."""
64-
return post(self.url, "/connections/create-invitation", params=kwargs)
64+
return post(self.url, "/out-of-band/create-invitation", params=kwargs, json=body)
6565

6666
@unwrap_json_response
6767
@fail_if_not_ok("Receive invitation failed")
6868
def receive_invite(self, invite: dict, **kwargs):
6969
"""Receive invitation."""
7070
return post(
71-
self.url, "/connections/receive-invitation", params=kwargs, json=invite
72-
)
73-
74-
@unwrap_json_response
75-
@fail_if_not_ok("Accept invitation failed")
76-
def accept_invite(self, connection_id: str):
77-
"""Accept invitation."""
78-
return post(
79-
self.url,
80-
f"/connections/{connection_id}/accept-invitation",
71+
self.url, "/out-of-band/receive-invitation", params=kwargs, json=invite
8172
)
8273

8374
@unwrap_json_response

basicmessage_storage/integration/tests/test_basicmessage_storage.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ def alice():
2424
@pytest.fixture(scope="session", autouse=True)
2525
def established_connection(bob, alice):
2626
"""Established connection filter."""
27-
invite = bob.create_invitation(auto_accept="true")["invitation"]
27+
invite = bob.create_invitation(
28+
{
29+
"handshake_protocols": ["https://didcomm.org/didexchange/1.1"],
30+
},
31+
auto_accept="true",
32+
)["invitation"]
2833
resp = alice.receive_invite(invite, auto_accept="true")
2934
yield resp["connection_id"]
3035

basicmessage_storage/poetry.lock

Lines changed: 210 additions & 217 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

basicmessage_storage/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ python = "^3.12"
99

1010
# Define ACA-Py as an optional/extra dependency so it can be
1111
# explicitly installed with the plugin if desired.
12-
acapy-agent = { version = "~1.2.4", optional = true }
12+
acapy-agent = { version = "~1.3.0", optional = true }
1313

1414
mergedeep = "^1.3.4"
1515

cheqd/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Description
44

5-
This plugin contains the components needed for ACA-Py to use [did:cheqd](https://cheqd.io) method for did creation and Anoncreds issuance, presentation and revocation. It also contains the Base class definitions for `DIDRegistrar` and `DIDManager`.
5+
This plugin contains the components needed for ACA-Py to use [did:cheqd](https://cheqd.io) method for did creation and AnonCreds issuance, presentation and revocation. It also contains the Base class definitions for `DIDRegistrar` and `DIDManager`.
66

77
### Operations
88

cheqd/cheqd/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ async def setup(context: InjectionContext):
3030
return
3131
resolver_registry.register_resolver(CheqdDIDResolver(resolver_url))
3232

33-
# Register Anoncreds provider
33+
# Register AnonCreds provider
3434
anoncreds_registry = context.inject_or(AnonCredsRegistry)
3535
if not anoncreds_registry:
36-
LOGGER.warning("No Anoncreds Registry instance found in context")
36+
LOGGER.warning("No AnonCreds Registry instance found in context")
3737
return
3838
cheqd_registry = ClassProvider(
3939
"cheqd.anoncreds.registry.DIDCheqdRegistry",

cheqd/cheqd/anoncreds/registry.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""DID Cheqd Anoncreds Registry."""
1+
"""DID Cheqd AnonCreds Registry."""
22

33
import logging
44
import time
@@ -35,7 +35,7 @@
3535
SchemaResult,
3636
SchemaState,
3737
)
38-
from acapy_agent.anoncreds.models.schema_info import AnoncredsSchemaInfo
38+
from acapy_agent.anoncreds.models.schema_info import AnonCredsSchemaInfo
3939
from acapy_agent.config.injection_context import InjectionContext
4040
from acapy_agent.core.profile import Profile
4141
from acapy_agent.resolver.base import DIDNotFound
@@ -52,7 +52,7 @@
5252
Secret,
5353
SubmitSignatureOptions,
5454
)
55-
from ..did.helpers import CheqdAnoncredsResourceType
55+
from ..did.helpers import CheqdAnonCredsResourceType
5656
from ..did.manager import CheqdDIDManager
5757
from ..did.registrar import DIDRegistrar
5858
from ..resolver.resolver import CheqdDIDResolver
@@ -122,7 +122,7 @@ async def setup(self, _context: InjectionContext, registrar_url, resolver_url):
122122

123123
async def get_schema_info_by_schema_id(
124124
self, profile: Profile, schema_id: str
125-
) -> AnoncredsSchemaInfo:
125+
) -> AnonCredsSchemaInfo:
126126
"""Get the schema info from the registry."""
127127
schema = self.get_schema(profile, schema_id)
128128
return {
@@ -162,7 +162,7 @@ async def register_schema(
162162
_options: Optional[dict] = None,
163163
) -> SchemaResult:
164164
"""Register a schema on the registry."""
165-
resource_type = CheqdAnoncredsResourceType.schema.value
165+
resource_type = CheqdAnonCredsResourceType.schema.value
166166
resource_name = f"{schema.name}"
167167
resource_version = schema.version
168168

@@ -285,7 +285,7 @@ async def register_credential_definition(
285285
_options: Optional[dict] = None,
286286
) -> CredDefResult:
287287
"""Register a credential definition on the registry."""
288-
resource_type = CheqdAnoncredsResourceType.credentialDefinition.value
288+
resource_type = CheqdAnonCredsResourceType.credentialDefinition.value
289289
# TODO: max chars are 31 for resource, on exceeding this should be hashed
290290
resource_name = f"{schema.schema_value.name}-{credential_definition.tag}"
291291

@@ -371,7 +371,7 @@ async def register_revocation_registry_definition(
371371
cred_def_res = cred_def_result.credential_definition_metadata.get("resourceName")
372372
# TODO: max chars are 31 for resource name, on exceeding this should be hashed
373373
resource_name = f"{cred_def_res}-{revocation_registry_definition.tag}"
374-
resource_type = CheqdAnoncredsResourceType.revocationRegistryDefinition.value
374+
resource_type = CheqdAnonCredsResourceType.revocationRegistryDefinition.value
375375

376376
rev_reg_def = ResourceCreateRequestOptions(
377377
options=Options(
@@ -431,7 +431,7 @@ async def get_revocation_list(
431431
)
432432
(did, resource_id) = self.split_did_url(revocation_registry_id)
433433

434-
resource_type = CheqdAnoncredsResourceType.revocationStatusList.value
434+
resource_type = CheqdAnonCredsResourceType.revocationStatusList.value
435435
epoch_time = timestamp_to or int(time.time())
436436
dt_object = datetime.fromtimestamp(epoch_time, tz=timezone.utc)
437437

@@ -459,14 +459,14 @@ async def get_revocation_list(
459459

460460
async def get_schema_info_by_id(
461461
self, profile: Profile, schema_id: str
462-
) -> AnoncredsSchemaInfo:
462+
) -> AnonCredsSchemaInfo:
463463
"""Get a schema info from the registry."""
464464
resource_with_metadata = await self.resolver.dereference_with_metadata(
465465
profile, schema_id
466466
)
467467
schema = resource_with_metadata.resource
468468
(did, resource_id) = self.split_did_url(schema_id)
469-
anoncreds_schema = AnoncredsSchemaInfo(
469+
anoncreds_schema = AnonCredsSchemaInfo(
470470
issuer_id=did,
471471
name=schema["name"],
472472
version=schema["version"],
@@ -488,7 +488,7 @@ async def register_revocation_list(
488488
resource_name = revocation_registry_definition.revocation_registry_metadata.get(
489489
"resourceName"
490490
)
491-
resource_type = CheqdAnoncredsResourceType.revocationStatusList.value
491+
resource_type = CheqdAnonCredsResourceType.revocationStatusList.value
492492
rev_status_list = ResourceCreateRequestOptions(
493493
options=Options(
494494
name=resource_name,
@@ -545,7 +545,7 @@ async def update_revocation_list(
545545
resource_name = revocation_registry_definition.revocation_registry_metadata.get(
546546
"resourceName"
547547
)
548-
resource_type = CheqdAnoncredsResourceType.revocationStatusList.value
548+
resource_type = CheqdAnonCredsResourceType.revocationStatusList.value
549549
rev_status_list = ResourceUpdateRequestOptions(
550550
options=Options(
551551
name=resource_name,

cheqd/cheqd/anoncreds/tests/test_registry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
RevListResult,
1717
)
1818
from acapy_agent.anoncreds.models.schema import GetSchemaResult, SchemaResult
19-
from acapy_agent.anoncreds.models.schema_info import AnoncredsSchemaInfo
19+
from acapy_agent.anoncreds.models.schema_info import AnonCredsSchemaInfo
2020

2121
from ...did.base import (
2222
ResourceCreateRequestOptions,
@@ -534,7 +534,7 @@ async def test_get_schema_info_by_id(mock_resolver, mock_profile):
534534
result = await registry.get_schema_info_by_id(mock_profile, schema_id)
535535

536536
# Assert
537-
assert isinstance(result, AnoncredsSchemaInfo)
537+
assert isinstance(result, AnonCredsSchemaInfo)
538538
assert result.issuer_id == "PART0"
539539
assert result.name == "MOCK_NAME"
540540
assert result.version == "MOCK_VERSION"

cheqd/cheqd/did/error_messages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Error messages for did cheqd."""
22

3-
DID_CHEQD_REQUIRED_MSG = "AnonCreds interface requires AskarAnoncreds profile"
3+
DID_CHEQD_REQUIRED_MSG = "AnonCreds interface requires AskarAnonCreds profile"

cheqd/cheqd/did/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class VerificationMethods(Enum):
3131
JWK = "JsonWebKey2020"
3232

3333

34-
class CheqdAnoncredsResourceType(Enum):
34+
class CheqdAnonCredsResourceType(Enum):
3535
"""Resource type values for anoncreds objects."""
3636

3737
schema = "anonCredsSchema"

0 commit comments

Comments
 (0)