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

Support P256 keys & did:keys #3442

Merged
merged 16 commits into from
Jan 15, 2025
Merged

Conversation

gmulhearn
Copy link
Contributor

@gmulhearn gmulhearn commented Jan 14, 2025

  • adds p256 did:key resolution (using Multikey VM type)
  • update askarwallet to support sign & verify with p256
  • update JWT signing to get the DID key's JWS Alg rather than hardcode to EdDSA
  • update parts of acapy_agent/wallet/keys/manager.py, removing some hardcoded ed25519 key types

Signed-off-by: George Mulhearn <[email protected]>
Signed-off-by: George Mulhearn <[email protected]>
Signed-off-by: George Mulhearn <[email protected]>
Signed-off-by: George Mulhearn <[email protected]>
Signed-off-by: George Mulhearn <[email protected]>
Signed-off-by: George Mulhearn <[email protected]>
@gmulhearn gmulhearn marked this pull request as ready for review January 14, 2025 10:18
Copy link
Contributor

@jamshale jamshale left a comment

Choose a reason for hiding this comment

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

Looks well done to me 👍 Will let others get a chance to review.

Copy link
Contributor

@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.

Overall pretty neat 👍
Just some recommendations for maintainability

acapy_agent/wallet/askar.py Outdated Show resolved Hide resolved
acapy_agent/wallet/askar.py Show resolved Hide resolved
acapy_agent/wallet/jwt.py Show resolved Hide resolved
acapy_agent/wallet/jwt.py Show resolved Hide resolved
acapy_agent/wallet/jwt.py Outdated Show resolved Hide resolved
acapy_agent/wallet/jwt.py Outdated Show resolved Hide resolved
Signed-off-by: George Mulhearn <[email protected]>
Signed-off-by: George Mulhearn <[email protected]>
@gmulhearn gmulhearn requested a review from ff137 January 15, 2025 12:15
ff137
ff137 previously approved these changes Jan 15, 2025
Copy link
Contributor

@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.

Nice, looks good to me 👍

acapy_agent/wallet/jwt.py Show resolved Hide resolved
acapy_agent/wallet/jwt.py Outdated Show resolved Hide resolved
Signed-off-by: George Mulhearn <[email protected]>
ff137
ff137 previously approved these changes Jan 15, 2025
@dbluhm dbluhm merged commit cd3a623 into openwallet-foundation:main Jan 15, 2025
11 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.

5 participants