Skip to content
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

DID updates for endorser #1601

Merged
merged 4 commits into from
Jan 20, 2022
Merged

Conversation

ianco
Copy link
Contributor

@ianco ianco commented Jan 18, 2022

Signed-off-by: Ian Costanzo ian@anon-solutions.ca

Adds endorser support to the ledger register_nym function, allowing Authors to self-register a public DID.

Signed-off-by: Ian Costanzo <ian@anon-solutions.ca>
@codecov-commenter
Copy link

codecov-commenter commented Jan 18, 2022

Codecov Report

Merging #1601 (7d02e9a) into main (7024c5a) will decrease coverage by 0.10%.
The diff coverage is 55.00%.

@@            Coverage Diff             @@
##             main    #1601      +/-   ##
==========================================
- Coverage   95.74%   95.64%   -0.11%     
==========================================
  Files         528      528              
  Lines       32515    32587      +72     
==========================================
+ Hits        31133    31169      +36     
- Misses       1382     1418      +36     

Signed-off-by: Ian Costanzo <ian@anon-solutions.ca>
Signed-off-by: Ian Costanzo <ian@anon-solutions.ca>
@ianco ianco marked this pull request as ready for review January 19, 2022 14:27
@@ -181,6 +224,7 @@ async def register_ledger_nym(request: web.BaseRequest):
request: aiohttp request object
"""
context: AdminRequestContext = request["context"]
outbound_handler = request["outbound_message_router"]
async with context.profile.session() as session:
ledger = session.inject_or(BaseLedger)
Copy link
Contributor

Choose a reason for hiding this comment

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

Hm, it's not updated by this PR, but BaseLedger should be injected via the profile not the session. Generally anything injected by the session shouldn't be touched after the async with block as it might refer to a closed session. This is also true for the IndyLedgerRequestExecutor instances which seem to be set up by the conductor.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK thanks for the tip!

@ianco ianco enabled auto-merge January 20, 2022 16:19
@ianco ianco merged commit 919fdfc into openwallet-foundation:main Jan 20, 2022
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.

3 participants