In AtClientMobile->AtClientService.dart, the "createAtChops" method creates the instance of AtChops on authentication of an atSign. Only the RSA Key-Pairs are set and SelfEncryptionKey is not set.
Attaching the code snippet:
AtChops createAtChops(Map<String, String> decryptedAtKeys) {
final atEncryptionKeyPair = AtEncryptionKeyPair.create(
decryptedAtKeys[BackupKeyConstants.ENCRYPTION_PUBLIC_KEY_FROM_FILE]!,
decryptedAtKeys[BackupKeyConstants.ENCRYPTION_PRIVATE_KEY_FROM_FILE]!);
final atPkamKeyPair = AtPkamKeyPair.create(
decryptedAtKeys[BackupKeyConstants.PKAM_PUBLIC_KEY_FROM_KEY_FILE]!,
decryptedAtKeys[BackupKeyConstants.PKAM_PRIVATE_KEY_FROM_KEY_FILE]!);
final atChopsKeys = AtChopsKeys.create(atEncryptionKeyPair, atPkamKeyPair);
final atChops = AtChopsImpl(atChopsKeys);
return atChops;
}
Excepted Result: Set the SelfEncryptionKey in AtChops Instance.
Excepted Result: Set the SelfEncryptionKey in AtChops Instance.