Updated on 2026-08-14
This commit is contained in:
parent
2de0a33f06
commit
4743c5d4a5
2 changed files with 4 additions and 2 deletions
|
|
@ -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 ->
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@ object Wallet2CardConfig : CardConfig {
|
|||
get() = listOf(
|
||||
EllipticCurve.Secp256k1,
|
||||
EllipticCurve.Ed25519,
|
||||
EllipticCurve.Bip0340,
|
||||
EllipticCurve.Bls12381G2Aug,
|
||||
EllipticCurve.Bip0340,
|
||||
EllipticCurve.Ed25519Slip0010,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue