-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix anoncreds issuance and compatibility Signed-off-by: jamshale <jamiehalebc@gmail.com> * Change schema info from dict to class. Signed-off-by: jamshale <jamiehalebc@gmail.com> * Add a unit test Signed-off-by: jamshale <jamiehalebc@gmail.com> * Revert holder credentail tag key changes Signed-off-by: jamshale <jamiehalebc@gmail.com> * Add get cred def info function to anoncreds registry Signed-off-by: jamshale <jamiehalebc@gmail.com> * Update anoncreds presentation handler to avoid indy parsing Signed-off-by: jamshale <jamiehalebc@gmail.com> * Fix unit tests Signed-off-by: jamshale <jamiehalebc@gmail.com> * Switch verifier away from get_info methods in handler Signed-off-by: jamshale <jamiehalebc@gmail.com> * Revert presentation request metadata and restrictions changes Signed-off-by: jamshale <jamiehalebc@gmail.com> * Fix get_cred_def usage Signed-off-by: jamshale <jamiehalebc@gmail.com> * Add profile to get_shcema_info_by_id Signed-off-by: jamshale <jamiehalebc@gmail.com> * Update unit test Signed-off-by: jamshale <jamiehalebc@gmail.com> * Remove redeclared variable Signed-off-by: jamshale <jamiehalebc@gmail.com> --------- Signed-off-by: jamshale <jamiehalebc@gmail.com>
- Loading branch information
Showing
14 changed files
with
188 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
"""This class represents schema information for anoncreds.""" | ||
|
||
from typing import Optional | ||
|
||
|
||
class AnoncredsSchemaInfo: | ||
"""Represents the schema information for anonymous credentials. | ||
Attributes: | ||
issuer_id (str): The identifier of the issuer. | ||
name (Optional[str]): The name of the schema. Defaults to None. | ||
version (Optional[str]): The version of the schema. Defaults to None. | ||
Args: | ||
issuer_id (str): The identifier of the issuer. | ||
name (Optional[str], optional): The name of the schema. Defaults to None. | ||
version (Optional[str], optional): The version of the schema. Defaults to None. | ||
""" | ||
|
||
def __init__( | ||
self, issuer_id: str, name: Optional[str] = None, version: Optional[str] = None | ||
): | ||
"""Initialize the schema information.""" | ||
self.issuer_id = issuer_id | ||
self.name = name | ||
self.version = version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.