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(Castor): extending createPrismDID to accept a KeyPair or PublicKey #70

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

curtis-h
Copy link
Contributor

Description

Extended Castor.createPrismDID to accept KeyPair.
Kept the option to use a PublicKey for backwards compatibility.

Noticed only SECP256K1 keys work during testing, it looks to be by design, but is not indicated by the code?

Jira link

https://input-output.atlassian.net/browse/ATL-4059

Checklist

  • Self-reviewed the diff
  • New code has inline documentation
  • New code has proper comments/tests
  • Any changes not covered by tests have been tested manually

@curtis-h curtis-h requested a review from milosh86 July 24, 2023 10:12
@curtis-h curtis-h self-assigned this Jul 24, 2023
Copy link
Contributor

@milosh86 milosh86 left a comment

Choose a reason for hiding this comment

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

great one 👍 ... love that you thought about backward compatibility and that you covered it with tests 🙌

@github-actions
Copy link

github-actions bot commented Aug 16, 2023

Coverage report

Branches coverage not met for global: expected >=30%, but got 22.63157894736842%

St.
Category Percentage Covered / Total
🔴 Statements
34.89% (+0.18% 🔼)
1370/3927
🔴 Branches
22.63% (+0.1% 🔼)
559/2470
🔴 Functions
35.41% (+0.09% 🔼)
409/1155
🔴 Lines
35.6% (+0.19% 🔼)
1341/3767
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🟢
... / keys.ts
100% 100% 100% 100%
🟢
... / index.ts
100% 100% 100% 100%

Test suite run success

119 tests passing in 23 suites.

Report generated by 🧪jest coverage report action from 71738ca

@curtis-h curtis-h merged commit d06871c into master Aug 22, 2023
4 checks passed
@curtis-h curtis-h deleted the feature/ATL-4059 branch August 22, 2023 10:19
atala-dev added a commit that referenced this pull request Aug 23, 2023
# [2.2.0](v2.1.0...v2.2.0) (2023-08-23)

### Bug Fixes

* **Pluto:** encoding / decoding PrivateKeys ([#78](#78)) ([b9133ac](b9133ac))

### Features

* **Castor:** extending createPrismDID to accept a KeyPair or PublicKey ([#70](#70)) ([d06871c](d06871c))
* **Demo:** Update Mediator DID for demo apps ([#73](#73)) ([7f3c98e](7f3c98e))
github-actions bot pushed a commit that referenced this pull request Aug 23, 2023
# [2.2.0](v2.1.0...v2.2.0) (2023-08-23)

### Bug Fixes

* **Pluto:** encoding / decoding PrivateKeys ([#78](#78)) ([b9133ac](b9133ac))

### Features

* **Castor:** extending createPrismDID to accept a KeyPair or PublicKey ([#70](#70)) ([d06871c](d06871c))
* **Demo:** Update Mediator DID for demo apps ([#73](#73)) ([7f3c98e](7f3c98e))
mixmix pushed a commit to mixmix/atala-prism-wallet-sdk-ts that referenced this pull request May 6, 2024
…ey (hyperledger#70)

Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
mixmix pushed a commit to mixmix/atala-prism-wallet-sdk-ts that referenced this pull request May 6, 2024
# [2.2.0](hyperledger/identus-edge-agent-sdk-ts@v2.1.0...v2.2.0) (2023-08-23)

### Bug Fixes

* **Pluto:** encoding / decoding PrivateKeys ([hyperledger#78](hyperledger#78)) ([b9133ac](hyperledger@b9133ac))

### Features

* **Castor:** extending createPrismDID to accept a KeyPair or PublicKey ([hyperledger#70](hyperledger#70)) ([d06871c](hyperledger@d06871c))
* **Demo:** Update Mediator DID for demo apps ([hyperledger#73](hyperledger#73)) ([7f3c98e](hyperledger@7f3c98e))

Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@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.

2 participants