-
public final class AccountUnique identifier for a specific account tracked by a
Synchronizer.Account identifiers are "one-way stable": a given identifier always points to a specific viewing key within a specific
Synchronizerinstance, but the same viewing key may have multiple account identifiers over time. In particular, this SDK upholds the following properties:When an account starts being tracked within a
Synchronizerinstance, a newAccountis generated.If an
Accountis present within aSynchronizer, it always points to the same account.
What this means is that account identifiers are not stable across "wallet recreation events". Examples of these include:
Restoring a wallet from a backed-up seed.
Importing the same viewing key into two different wallet instances.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAccount.Companion
-
Field Summary
Fields Modifier and Type Field Description private final AccountUuidaccountUuidprivate final Stringufvkprivate final StringaccountNameprivate final StringkeySourceprivate final ByteArrayseedFingerprintprivate final Zip32AccountIndexhdAccountIndex
-
Method Summary
Modifier and Type Method Description final AccountUuidgetAccountUuid()final StringgetUfvk()final StringgetAccountName()final StringgetKeySource()final ByteArraygetSeedFingerprint()final Zip32AccountIndexgetHdAccountIndex()StringtoString()Booleanequals(Object other)IntegerhashCode()-
-
Method Detail
-
getAccountUuid
final AccountUuid getAccountUuid()
-
getAccountName
final String getAccountName()
-
getKeySource
final String getKeySource()
-
getSeedFingerprint
final ByteArray getSeedFingerprint()
-
getHdAccountIndex
final Zip32AccountIndex getHdAccountIndex()
-
-
-
-