Skip to content

Commit

Permalink
fix: remove storing apkam encrypted keys for first enrollment
Browse files Browse the repository at this point in the history
  • Loading branch information
murali-shris committed Dec 5, 2024
1 parent 78d342b commit 7fec9be
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,6 @@ class EnrollVerbHandler extends AbstractVerbHandler {
final inboundConnectionMetadata =
atConnection.metaData as InboundConnectionMetadata;
inboundConnectionMetadata.enrollmentId = newEnrollmentId;
// Store default encryption private key and self encryption key(both encrypted)
// for future retrieval
await _storeEncryptionKeys(newEnrollmentId, enrollParams, currentAtSign);
// store this apkam as default pkam public key for old clients
// The keys with AT_PKAM_PUBLIC_KEY does not sync to client.
await keyStore.put(AtConstants.atPkamPublicKey,
Expand Down
2 changes: 0 additions & 2 deletions tests/at_functional_test/test/enroll_verb_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,6 @@ void main() {

String selfKeyGetResponse = await socketConnection2
.sendRequestToServer('keys:get:keyName:$selfKey');
print('selfKeyGetResponse: $selfKeyGetResponse');
selfKeyGetResponse = selfKeyGetResponse.replaceFirst('data:', '');
var selfKeyResponseJson = jsonDecode(selfKeyGetResponse);
expect(selfKeyResponseJson['value'],
Expand All @@ -428,7 +427,6 @@ void main() {
expect(privateKeyResponse.contains(privateKey), true);
String privateKeyGetResponse = await socketConnection2
.sendRequestToServer('keys:get:keyName:$privateKey');
print('**privateKeyGetResponse: $privateKeyGetResponse');
privateKeyGetResponse = privateKeyGetResponse.replaceFirst('data:', '');
var privateKeyResponseJson = jsonDecode(privateKeyGetResponse);
expect(privateKeyResponseJson['value'],
Expand Down

0 comments on commit 7fec9be

Please sign in to comment.