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!: move to swift based framework for didcomm, jose and peer did #120

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

goncalo-frade-iohk
Copy link
Contributor

@goncalo-frade-iohk goncalo-frade-iohk commented Feb 14, 2024

BREAKING CHANGE: Updated Pluto and Message public interface

This changes are required to provide the following.

  • the old didcomm library didnt allow for extra headers that was essencial to prism mediator
  • this peer did library is updated with last specifications specs required by the agent and prism mediator
  • this jose library provides a full implementation of the jose capabilities we require

The amount of changes is big because the peer did changes required a few changes on how we process keys and resolve secrets

Besides that since the previous libraries were not build in swift, we are actually getting rid of 37MB of framework size

Checklist

My PR contains...

  • No code changes (changes to documentation, CI, metadata, etc.)
  • Bug fixes (non-breaking change which fixes an issue)
  • Improvements (misc. changes to existing features)
  • Features (non-breaking change which adds functionality)

My changes...

  • are breaking changes
  • are not breaking changes
  • If yes to the above: I have updated the documentation accordingly

Documentation

  • My changes do not require a change to the project documentation
  • My changes require a change to the project documentation
  • If yes to the above: I have updated the documentation accordingly

Tests

  • My changes can not or do not need to be tested
  • My changes can and should be tested by unit and/or integration tests
  • If yes to the above: I have added tests to cover my changes
  • If yes to the above: I have taken care to cover edge cases in my tests

@@ -404,7 +404,7 @@
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"DIDChat/Preview Content\"";
DEVELOPMENT_TEAM = 89TW38X994;
DEVELOPMENT_TEAM = "";
Copy link
Contributor

Choose a reason for hiding this comment

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

nice one

Comment on lines 141 to 148
// logger.debug(message: "Getting ecnumbasis", metadata: [
// .maskedMetadataByLevel(key: "DID", value: did.string, level: .debug)
// ])
// return try CreatePeerDIDOperation(
// autenticationPublicKey: publicKey,
// agreementPublicKey: publicKey,
// services: []
// ).computeEcnumbasis(did: did, publicKey: publicKey)

Choose a reason for hiding this comment

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

Do we need to keep this commented code?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

)
}

private func authenticationFromPublicKey(publicKey: PublicKey) throws -> VerificationMaterialAuthentication {
//

Choose a reason for hiding this comment

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

Can we remove this line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Comment on lines 40 to 41
print(error)
print()
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove Print from code.

Suggested change
print(error)
print()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

One of them I will leave since it is in the demo ;)

@goncalo-frade-iohk goncalo-frade-iohk force-pushed the feature/update-dependencies branch 3 times, most recently from 213184c to 7cbf5b9 Compare February 21, 2024 13:45
BREAKING CHANGE: Updated Pluto and Message public interface

This changes are required to provide the following.
- the old didcomm library didnt allow for extra headers that was essencial to prism mediator
- this peer did library is updated with last specifications specs required by the agent and prism mediator
- this jose library provides a full implementation of the jose capabilities we require

The amount of changes is big because the peer did changes required a few changes on how we process keys and resolve secrets

Besides that since the previous libraries were not build in swift, we are actually getting rid of 37MB of framework size
@goncalo-frade-iohk goncalo-frade-iohk force-pushed the feature/update-dependencies branch from 7cbf5b9 to 8f968e2 Compare February 21, 2024 14:25
@goncalo-frade-iohk goncalo-frade-iohk merged commit cd2b623 into main Feb 21, 2024
3 checks passed
@goncalo-frade-iohk goncalo-frade-iohk deleted the feature/update-dependencies branch February 21, 2024 14:41
goncalo-frade-iohk added a commit that referenced this pull request Feb 27, 2024
…120)

BREAKING CHANGE: There is an update to the public API that is used directly with DIDComm
atala-dev added a commit that referenced this pull request Feb 27, 2024
# [5.0.0](4.0.1...5.0.0) (2024-02-27)

### Bug Fixes

* schema download optional ([#116](#116)) ([37655c1](37655c1))

* feat!: move to swift based framework for didcomm, jose and peer did (#120) ([558164f](558164f)), closes [#120](#120)

### BREAKING CHANGES

* There is an update to the public API that is used directly with DIDComm
atala-dev added a commit that referenced this pull request Mar 25, 2024
# [5.0.0](4.0.1...5.0.0) (2024-03-25)

### Bug Fixes

* schema download optional ([#116](#116)) ([37655c1](37655c1))
* update apollo that has an important fix for app publishing ([#128](#128)) ([5e9eee9](5e9eee9))

* feat!: move to swift based framework for didcomm, jose and peer did (#120) ([558164f](558164f)), closes [#120](#120)

### BREAKING CHANGES

* There is an update to the public API that is used directly with DIDComm
goncalo-frade-iohk added a commit that referenced this pull request May 14, 2024
…120)

BREAKING CHANGE: There is an update to the public API that is used directly with DIDComm

Signed-off-by: goncalo-frade-iohk <goncalo.frade@iohk.io>
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.

4 participants