Skip to content

Allow schema id to be used during anoncreds issuance#3497

Merged
jamshale merged 7 commits intoopenwallet-foundation:mainfrom
jamshale:feat/3496
Feb 12, 2025
Merged

Allow schema id to be used during anoncreds issuance#3497
jamshale merged 7 commits intoopenwallet-foundation:mainfrom
jamshale:feat/3496

Conversation

@jamshale
Copy link
Copy Markdown
Contributor

@jamshale jamshale commented Feb 7, 2025

The schema is needed during issuance to check whether the correct attributes were supplied. This original implementation was attempting to get the schema from local storage but the issuer does not need to be the agent that created the schema. This allows an agent to supply the schema_id in the filter options. It will first use the registry to look it up on the data registry. If its not provided then it will attempt to get the schema from local storage and assume that it created the schema.

@jamshale jamshale linked an issue Feb 7, 2025 that may be closed by this pull request
@jamshale jamshale requested review from dbluhm, esune and ff137 February 10, 2025 17:08
Signed-off-by: jamshale <jamiehalebc@gmail.com>
Signed-off-by: jamshale <jamiehalebc@gmail.com>
Signed-off-by: jamshale <jamiehalebc@gmail.com>
Signed-off-by: jamshale <jamiehalebc@gmail.com>
Signed-off-by: jamshale <jamiehalebc@gmail.com>
Signed-off-by: jamshale <jamiehalebc@gmail.com>
ff137
ff137 previously approved these changes Feb 12, 2025
Copy link
Copy Markdown
Member

@ff137 ff137 left a comment

Choose a reason for hiding this comment

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

Looks good 👍

Signed-off-by: jamshale <jamiehalebc@gmail.com>
@sonarqubecloud
Copy link
Copy Markdown

@jamshale jamshale merged commit 3b8d91e into openwallet-foundation:main Feb 12, 2025
11 checks passed
ff137 pushed a commit to didx-xyz/acapy that referenced this pull request Feb 13, 2025
…dation#3497)

* Allow schema id to be used during anoncreds issuance

Signed-off-by: jamshale <jamiehalebc@gmail.com>

* Fix scenario test

Signed-off-by: jamshale <jamiehalebc@gmail.com>

* Fix mistake in handler / Add unit tests

Signed-off-by: jamshale <jamiehalebc@gmail.com>

* Try a sleep in between upgrades. Issue with github actions

Signed-off-by: jamshale <jamiehalebc@gmail.com>

* Refactor based on PR review comments

Signed-off-by: jamshale <jamiehalebc@gmail.com>

* Repair _fetch_schema_attr_names function call

Signed-off-by: jamshale <jamiehalebc@gmail.com>

* Remove unnessecary self usage

Signed-off-by: jamshale <jamiehalebc@gmail.com>

---------

Signed-off-by: jamshale <jamiehalebc@gmail.com>
ff137 pushed a commit to didx-xyz/acapy that referenced this pull request Feb 13, 2025
…dation#3497)

* Allow schema id to be used during anoncreds issuance

Signed-off-by: jamshale <jamiehalebc@gmail.com>

* Fix scenario test

Signed-off-by: jamshale <jamiehalebc@gmail.com>

* Fix mistake in handler / Add unit tests

Signed-off-by: jamshale <jamiehalebc@gmail.com>

* Try a sleep in between upgrades. Issue with github actions

Signed-off-by: jamshale <jamiehalebc@gmail.com>

* Refactor based on PR review comments

Signed-off-by: jamshale <jamiehalebc@gmail.com>

* Repair _fetch_schema_attr_names function call

Signed-off-by: jamshale <jamiehalebc@gmail.com>

* Remove unnessecary self usage

Signed-off-by: jamshale <jamiehalebc@gmail.com>

---------

Signed-off-by: jamshale <jamiehalebc@gmail.com>
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.

Unexpected behavior during the issuance of anoncreds.

3 participants