-
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.
Change schema info from dict to class.
Signed-off-by: jamshale <[email protected]>
- Loading branch information
Showing
7 changed files
with
44 additions
and
13 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
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