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(pluto): add keychain capabilities #98

Merged
merged 1 commit into from
Sep 4, 2023
Merged

Conversation

goncalo-frade-iohk
Copy link
Contributor

Now keys will save on the keychain if they conform to the KeychainStorableKey, this is true by default on the keys created by Apollo Pluto will take care of the saving and fetching the keys from the blockchain.

This allows for secrets to be shared between apps and to be synchronised to iCloud if required, although all this is by opt in

Copy link
Contributor

@hamada147 hamada147 left a comment

Choose a reason for hiding this comment

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

General Inquiry:

  • We are going to use the keychain only in the demo project and it will not be shipped in the SDK, correct?

General Comment:
I very much liked how you handled the keychain operations 🤗

Otherwise, LGTM 🤗

@@ -81,6 +81,7 @@ final class PackEncryptedOperation: OnPackEncryptedResult {
}

func success(result: String, metadata: PackEncryptedMetadata) {
print(result)
Copy link
Contributor

Choose a reason for hiding this comment

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

To be removed, missed during debug

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup nice catch ;)

@@ -1,7 +1,7 @@
import Domain
import Foundation

extension AttachmentDescriptor: Codable {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you remove the Codable but kept the CodingKeys

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually all file needs to be removed this is now duplicated on Domain ;) Removed

Now keys will save on the keychain if they conform to the KeychainStorableKey, this is true by default on the keys created by Apollo
Pluto will take care of the saving and fetching the keys from the blockchain.

This allows for secrets to be shared between apps and to be synchronised to iCloud if required, although all this is by opt in
@goncalo-frade-iohk
Copy link
Contributor Author

General Comment: I very much liked how you handled the keychain operations 🤗

Otherwise, LGTM 🤗

Thx mate :)

@goncalo-frade-iohk goncalo-frade-iohk merged commit f013907 into main Sep 4, 2023
@goncalo-frade-iohk goncalo-frade-iohk deleted the feature/ATL-5107 branch September 4, 2023 11:46
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