-
Notifications
You must be signed in to change notification settings - Fork 31
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: Replace EncryptionUtil decryption methods with at_chops #1185
Conversation
throw AtPublicKeyChangeException( | ||
'Public key has changed. Cannot decrypt shared key ${atKey.toString()}', | ||
intent: Intent.fetchEncryptionPublicKey, | ||
exceptionScenario: ExceptionScenario.encryptionFailed); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be ExceptionScenario.decryptionFailed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes Gary. changed
@@ -15,16 +15,16 @@ import 'package:at_chops/at_chops.dart'; | |||
abstract class AbstractAtKeyEncryption implements AtKeyEncryption { | |||
late final AtSignLogger _logger; | |||
late String _sharedKey; | |||
final AtClient _atClient; | |||
final AtClient atClient; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why has the visibility been increased from _atClient to atClient?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in LocalKeyDecryption i had call to super.atClient.
Modified the code in LocalKeyDecryption to remove call to super.atClient in latest commit
@@ -7,6 +7,8 @@ import 'package:encrypt/encrypt.dart'; | |||
import 'package:crypto/crypto.dart'; | |||
import 'package:at_utils/at_logger.dart'; | |||
|
|||
//#TODO Replace calls to methods in this class with at_chops methods and | |||
// move this class to test folder in next major release |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it safe to mark this class and all of the methods as @Deprecated
now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are 4 sub tasks in #1145
this PR is for first sub task. I am currently working on second sub task.
Once all sub tasks are done, we can mark the methods deprecated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See individual comments
…atsign-foundation/at_client_sdk into replace_encryption_util_methods
- What I did
- How I did it
- How to verify it