Skip to content

Commit

Permalink
Anoncreds - Cred Def and Revocation Endorsement
Browse files Browse the repository at this point in the history
Signed-off-by: jamshale <[email protected]>
  • Loading branch information
jamshale committed Feb 9, 2024
1 parent da5e01f commit 0a56c12
Show file tree
Hide file tree
Showing 23 changed files with 2,419 additions and 493 deletions.
1 change: 1 addition & 0 deletions .devcontainer/post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ cat > .pytest.ini <<EOF
testpaths = "aries_cloudagent"
addopts = --quiet
markers = [
"anoncreds: Tests specifically relating to AnonCreds support",
"askar: Tests specifically relating to Aries-Askar support",
"indy: Tests specifically relating to Hyperledger Indy SDK support",
"indy_credx: Tests specifically relating to Indy-Credx support",
Expand Down
10 changes: 5 additions & 5 deletions aries_cloudagent/anoncreds/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ async def register_schema(
self,
profile: Profile,
schema: AnonCredsSchema,
options: Optional[dict] = None,
options: dict = {},
) -> SchemaResult:
"""Register a schema on the registry."""

Expand All @@ -154,7 +154,7 @@ async def register_credential_definition(
profile: Profile,
schema: GetSchemaResult,
credential_definition: CredDef,
options: Optional[dict] = None,
options: dict = {},
) -> CredDefResult:
"""Register a credential definition on the registry."""

Expand All @@ -163,7 +163,7 @@ async def register_revocation_registry_definition(
self,
profile: Profile,
revocation_registry_definition: RevRegDef,
options: Optional[dict] = None,
options: dict = {},
) -> RevRegDefResult:
"""Register a revocation registry definition on the registry."""

Expand All @@ -173,7 +173,7 @@ async def register_revocation_list(
profile: Profile,
rev_reg_def: RevRegDef,
rev_list: RevList,
options: Optional[dict] = None,
options: dict = {},
) -> RevListResult:
"""Register a revocation list on the registry."""

Expand All @@ -185,6 +185,6 @@ async def update_revocation_list(
prev_list: RevList,
curr_list: RevList,
revoked: Sequence[int],
options: Optional[dict] = None,
options: dict = {},
) -> RevListResult:
"""Update a revocation list on the registry."""
12 changes: 6 additions & 6 deletions aries_cloudagent/anoncreds/default/did_indy/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import logging
import re
from typing import Optional, Pattern, Sequence
from typing import Pattern, Sequence

from ....config.injection_context import InjectionContext
from ....core.profile import Profile
Expand Down Expand Up @@ -55,7 +55,7 @@ async def register_schema(
self,
profile: Profile,
schema: AnonCredsSchema,
options: Optional[dict],
options: dict = {},
) -> SchemaResult:
"""Register a schema on the registry."""
raise NotImplementedError()
Expand All @@ -71,7 +71,7 @@ async def register_credential_definition(
profile: Profile,
schema: GetSchemaResult,
credential_definition: CredDef,
options: Optional[dict] = None,
options: dict = {},
) -> CredDefResult:
"""Register a credential definition on the registry."""
raise NotImplementedError()
Expand All @@ -86,7 +86,7 @@ async def register_revocation_registry_definition(
self,
profile: Profile,
revocation_registry_definition: RevRegDef,
options: Optional[dict] = None,
options: dict = {},
) -> RevRegDefResult:
"""Register a revocation registry definition on the registry."""
raise NotImplementedError()
Expand All @@ -102,7 +102,7 @@ async def register_revocation_list(
profile: Profile,
rev_reg_def: RevRegDef,
rev_list: RevList,
options: Optional[dict] = None,
options: dict = {},
) -> RevListResult:
"""Register a revocation list on the registry."""
raise NotImplementedError()
Expand All @@ -114,7 +114,7 @@ async def update_revocation_list(
prev_list: RevList,
curr_list: RevList,
revoked: Sequence[int],
options: Optional[dict] = None,
options: dict = {},
) -> RevListResult:
"""Update a revocation list on the registry."""
raise NotImplementedError()
12 changes: 6 additions & 6 deletions aries_cloudagent/anoncreds/default/did_web/registry.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""DID Web Registry."""

import re
from typing import Optional, Pattern, Sequence
from typing import Pattern, Sequence

from ....config.injection_context import InjectionContext
from ....core.profile import Profile
Expand Down Expand Up @@ -50,7 +50,7 @@ async def register_schema(
self,
profile: Profile,
schema: AnonCredsSchema,
options: Optional[dict] = None,
options: dict = {},
) -> SchemaResult:
"""Register a schema on the registry."""
raise NotImplementedError()
Expand All @@ -66,7 +66,7 @@ async def register_credential_definition(
profile: Profile,
schema: GetSchemaResult,
credential_definition: CredDef,
options: Optional[dict] = None,
options: dict = {},
) -> CredDefResult:
"""Register a credential definition on the registry."""
raise NotImplementedError()
Expand All @@ -81,7 +81,7 @@ async def register_revocation_registry_definition(
self,
profile: Profile,
revocation_registry_definition: RevRegDef,
options: Optional[dict] = None,
options: dict = {},
) -> RevRegDefResult:
"""Register a revocation registry definition on the registry."""
raise NotImplementedError()
Expand All @@ -97,7 +97,7 @@ async def register_revocation_list(
profile: Profile,
rev_reg_def: RevRegDef,
rev_list: RevList,
options: Optional[dict] = None,
options: dict = {},
) -> RevListResult:
"""Register a revocation list on the registry."""
raise NotImplementedError()
Expand All @@ -109,7 +109,7 @@ async def update_revocation_list(
prev_list: RevList,
curr_list: RevList,
revoked: Sequence[int],
options: Optional[dict] = None,
options: dict = {},
) -> RevListResult:
"""Update a revocation list on the registry."""
raise NotImplementedError()
Loading

0 comments on commit 0a56c12

Please sign in to comment.