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

AND-4928 move online attestation on backup flow #339

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

kozarezvlad
Copy link
Collaborator

No description provided.

Yoggam1
Yoggam1 previously approved these changes Jan 17, 2024
@@ -65,7 +71,16 @@ class BackupService(
*/
var skipCompatibilityChecks: Boolean = false

private val backupScope = CoroutineScope(Dispatchers.IO) + CoroutineExceptionHandler { _, throwable ->
Copy link
Contributor

Choose a reason for hiding this comment

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

Он не должен закрываться нигде? Или я не увидел просто?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

по логике не должно быть такого, что джобы висят и объект сервиса уже не нужен, + он не привязан к жц никак

Comment on lines 16 to 18
private val onlineCardVerifier: OnlineCardVerifier = OnlineCardVerifier()
suspend fun getCertificate(
Copy link
Contributor

Choose a reason for hiding this comment

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

Странно, что детект схавал такой стиль. Мб строчку добавить между ними?
На твое усмотрение

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

добавил

@@ -415,19 +474,20 @@ class PrimaryCard(
val batchId: String?, // for compatibility with interrupted backups
val firmwareVersion: FirmwareVersion?, // for compatibility with interrupted backups
val isKeysImportAllowed: Boolean?, // for compatibility with interrupted backups
) : CertificateProvider {
constructor(rawPrimaryCard: RawPrimaryCard, issuerSignature: ByteArray) : this(
val certificate: ByteArray?,
Copy link
Contributor

Choose a reason for hiding this comment

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

А дата класс не требует переопределения equals из-за использования массива байт?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

требует, но тут смысла не имеет особого

@kozarezvlad kozarezvlad force-pushed the feature/AND-4928-online-attestation-on-backup branch from 2e7f8f4 to 3fd66be Compare January 17, 2024 08:55
@kozarezvlad kozarezvlad merged commit 945f409 into develop Jan 17, 2024
3 checks passed
@kozarezvlad kozarezvlad deleted the feature/AND-4928-online-attestation-on-backup branch January 17, 2024 09:06
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