Updated on 2026-08-14

This commit is contained in:
Tangem 2025-10-22 19:42:58 +04:00
parent 5a62376bfa
commit f4fa13627c
15 changed files with 142 additions and 53 deletions

View file

@ -40,6 +40,10 @@ data class AccountId private constructor(
private val sha256Digest: MessageDigest by lazy { MessageDigest.getInstance("SHA-256") }
private val hexRegex = Regex("^[a-fA-F0-9]{64}$")
fun forMainCryptoPortfolio(userWalletId: UserWalletId): AccountId {
return forCryptoPortfolio(userWalletId = userWalletId, derivationIndex = DerivationIndex.Main)
}
/**
* Creates a unique account identifier for a crypto portfolio
*