Package convex.core.crypto.wallet
Interface IWalletEntry
-
Method Summary
Modifier and TypeMethodDescriptionGets the key pair associated with this wallet entry, if unlockedGet the public key associated with this wallet entryboolean
isLocked()
Check if this wallet entry is locked.void
lock
(char[] password) Lock the wallet entry.boolean
tryUnlock
(char[] password) Try to unlock a wallet with the given passwordvoid
unlock
(char[] password) Unlock the wallet entry.
-
Method Details
-
isLocked
boolean isLocked()Check if this wallet entry is locked.- Returns:
- True if wallet is locked
-
getKeyPair
AKeyPair getKeyPair()Gets the key pair associated with this wallet entry, if unlocked- Returns:
- Key pair instance, or null if not available (locked)
-
getPublicKey
-
tryUnlock
boolean tryUnlock(char[] password) Try to unlock a wallet with the given password- Parameters:
password
- Password to unlock- Returns:
- true if unlocked, false otherwise
-
unlock
void unlock(char[] password) Unlock the wallet entry. Unlocking makes the entry usable for signing- Parameters:
password
- Unlock password
-
lock
void lock(char[] password) Lock the wallet entry. Locking makes the wallet entry unusable until unlocked.- Parameters:
password
- Password with which to lock wallet
-