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

feat: multi-sig IPEX apply, offer, agree endpoints #278

Merged

Conversation

iFergal
Copy link
Collaborator

@iFergal iFergal commented Jul 30, 2024

Continuing #193 for multi-sig. No spurn yet.

@@ -144,6 +143,8 @@ def sendMultisigExn(agent, hab, ked, sigs, atc, rec):
if grant is None:
raise falcon.HTTPBadRequest(description=f"attempt to admit an invalid grant {admitked['p']}")

agent.exchanges.append(dict(said=serder.said, pre=hab.pre, rec=rec, topic='credential'))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've moved this below the above checks for the exn message and link to grant etc - presume we don't want to send the /multisig/exn message to others until we have passed those checks

@@ -341,24 +363,32 @@ def test_ipex_grant(helpers, mockHelpingNowIso8601, seeder):
'title': '400 Bad Request'}


def test_multisig_grant_admit(seeder, helpers):
def test_multisig(seeder, helpers):
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This test is now even longer, so not sure. But the setup of multi-sigs and credentials being issued is expensive so decided to keep it all to one test if that's OK.

Copy link

codecov bot commented Jul 30, 2024

Codecov Report

Attention: Patch coverage is 92.99720% with 25 lines in your changes missing coverage. Please review.

Project coverage is 93.11%. Comparing base (18d3ad7) to head (91532ab).
Report is 11 commits behind head on main.

Files Patch % Lines
src/keria/app/ipexing.py 85.71% 16 Missing ⚠️
tests/app/test_ipexing.py 96.32% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #278      +/-   ##
==========================================
+ Coverage   93.06%   93.11%   +0.04%     
==========================================
  Files          36       36              
  Lines        7121     7562     +441     
==========================================
+ Hits         6627     7041     +414     
- Misses        494      521      +27     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@iFergal
Copy link
Collaborator Author

iFergal commented Jul 30, 2024

Note - multi-sig admit should retrieve the recipient of admit from the rp field (to be renamed to ri). Right now it takes the issuer of the ACDC but that only works for issuances and not presentations.

Will update that after Signify-TS has been updated though to always pass the recipient.

Copy link
Collaborator

@2byrds 2byrds left a comment

Choose a reason for hiding this comment

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

LGTM. Adds exchange endpoints for IPEX multisig offer and agree and provides tests.

@2byrds 2byrds merged commit 0026757 into WebOfTrust:main Aug 20, 2024
5 checks passed
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.

2 participants