Updated on 2026-08-14

This commit is contained in:
Tangem 2023-08-29 15:26:31 +03:00
parent c897be37cc
commit c7a1a35d67
2 changed files with 4 additions and 2 deletions

View file

@ -151,7 +151,9 @@ private class CreateWalletTangemWallet(
) {
val config = CardConfig.createConfig(card)
val walletsOnCard = card.wallets.map { it.curve }.toSet()
val curves = card.supportedCurves.intersect(config.mandatoryCurves.toSet()).subtract(walletsOnCard).toList()
val curves = config.mandatoryCurves.toSet()
.intersect(card.supportedCurves.toSet())
.subtract(walletsOnCard).toList()
if (curves.isEmpty()) {
val createWalletResponses = card.wallets.map { wallet ->

View file

@ -9,8 +9,8 @@ object Wallet2CardConfig : CardConfig {
get() = listOf(
EllipticCurve.Secp256k1,
EllipticCurve.Ed25519,
EllipticCurve.Bip0340,
EllipticCurve.Bls12381G2Aug,
EllipticCurve.Bip0340,
EllipticCurve.Ed25519Slip0010,
)