parent
fb85269f14
commit
b6c85d22c0
|
@ -16,6 +16,7 @@ and this application adheres to [Semantic Versioning](https://semver.org/spec/v2
|
||||||
- `Flexa` version has been bumped to 1.0.11
|
- `Flexa` version has been bumped to 1.0.11
|
||||||
- Several non-FOSS dependencies has been removed for the new FOSS Zashi build type
|
- Several non-FOSS dependencies has been removed for the new FOSS Zashi build type
|
||||||
- Keystone flows swapped the buttons for the better UX, the main CTA is the closes button for a thumb.
|
- Keystone flows swapped the buttons for the better UX, the main CTA is the closes button for a thumb.
|
||||||
|
- `Synchronizer.redactPcztForSigner` is now called in order to generate pczt bytes to display as QR for Keystone
|
||||||
|
|
||||||
## [1.3.3 (839)] - 2025-01-23
|
## [1.3.3 (839)] - 2025-01-23
|
||||||
|
|
||||||
|
|
|
@ -57,10 +57,14 @@ interface ProposalDataSource {
|
||||||
proposal: Proposal,
|
proposal: Proposal,
|
||||||
usk: UnifiedSpendingKey
|
usk: UnifiedSpendingKey
|
||||||
): SubmitResult
|
): SubmitResult
|
||||||
|
|
||||||
|
@Throws(PcztException.RedactPcztForSignerException::class)
|
||||||
|
suspend fun redactPcztForSigner(pczt: Pczt): Pczt
|
||||||
}
|
}
|
||||||
|
|
||||||
class TransactionProposalNotCreatedException(reason: Exception) : Exception(reason)
|
class TransactionProposalNotCreatedException(reason: Exception) : Exception(reason)
|
||||||
|
|
||||||
|
@Suppress("TooManyFunctions")
|
||||||
class ProposalDataSourceImpl(
|
class ProposalDataSourceImpl(
|
||||||
private val synchronizerProvider: SynchronizerProvider,
|
private val synchronizerProvider: SynchronizerProvider,
|
||||||
) : ProposalDataSource {
|
) : ProposalDataSource {
|
||||||
|
@ -172,6 +176,12 @@ class ProposalDataSourceImpl(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override suspend fun redactPcztForSigner(pczt: Pczt): Pczt =
|
||||||
|
withContext(Dispatchers.IO) {
|
||||||
|
synchronizerProvider.getSynchronizer()
|
||||||
|
.redactPcztForSigner(pczt)
|
||||||
|
}
|
||||||
|
|
||||||
private suspend inline fun submitTransactionInternal(
|
private suspend inline fun submitTransactionInternal(
|
||||||
crossinline block: suspend (Synchronizer) -> Flow<TransactionSubmitResult>
|
crossinline block: suspend (Synchronizer) -> Flow<TransactionSubmitResult>
|
||||||
): SubmitResult =
|
): SubmitResult =
|
||||||
|
|
|
@ -146,8 +146,9 @@ class KeystoneProposalRepositoryImpl(
|
||||||
override suspend fun createPCZTEncoder(): UREncoder =
|
override suspend fun createPCZTEncoder(): UREncoder =
|
||||||
withContext(Dispatchers.IO) {
|
withContext(Dispatchers.IO) {
|
||||||
val pczt = proposalPczt ?: throw IllegalStateException("Proposal not created")
|
val pczt = proposalPczt ?: throw IllegalStateException("Proposal not created")
|
||||||
|
val redactedPczt = proposalDataSource.redactPcztForSigner(pczt.clonePczt())
|
||||||
keystoneZcashSDK.generatePczt(
|
keystoneZcashSDK.generatePczt(
|
||||||
pczt = pczt.clonePczt().toByteArray()
|
pczt = redactedPczt.toByteArray()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue