Skip to content

Restored get_attribute for creddef and updated python wrapper #355

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Gavinok
Copy link

@Gavinok Gavinok commented Mar 10, 2025

This pull request resolves #354

I have tested this against the python wrapper and updated it to support the current values of the CredentialDefinition struct

@berendsliedrecht
Copy link
Contributor

rebasing with main should fix the build issues

Gavinok added 2 commits March 21, 2025 08:58
Signed-off-by: Gavin Jaeger-Freeborn <[email protected]>
@Gavinok Gavinok force-pushed the restore_anoncreds_credential_definition_get_attribute branch from 53d964d to d4252a6 Compare March 21, 2025 15:59
@Gavinok
Copy link
Author

Gavinok commented Mar 21, 2025

@berendsliedrecht rebased. Thanks for letting me know

@@ -40,25 +40,46 @@ def load(cls, value: Union[dict, str, bytes, memoryview]) -> "CredentialDefiniti
)

@property
def id(self) -> str:
def schema_id(self) -> str:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to drop the "id" property accessor?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To my knowledge there isn't actually an id field in CredentialDefinition.
https://github.com/Gavinok/anoncreds-rs/blob/main/src/data_types/cred_def.rs#L39-L48

Feel free to correct me if I am missing something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

restore anoncreds_credential_definition_get_attribute
3 participants