Package convex.core.crypto.wallet
Class HotWalletEntry
java.lang.Object
convex.core.crypto.wallet.AWalletEntry
convex.core.crypto.wallet.HotWalletEntry
- All Implemented Interfaces:
IWalletEntry
Class implementing a Hot Wallet Entry. Hot keys are stored in memory, and are accessible to
attackers able to gain full control of the machine.
May be in a locked locked or unlocked state. Unlocking requires passphrase.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HotWalletEntry
Returns the data to be used for a wallet identicon.Gets the key pair associated with this wallet entry, if unlockedprotected Hash
getPasswordHash
(char[] password) Get the public key associated with this wallet entryboolean
isLocked()
Check if this wallet entry is locked.void
lock
(char[] password) Lock the wallet entry.<R extends ACell>
SignedData<R> sign
(R message) toString()
boolean
tryUnlock
(char[] password) Try to unlock a wallet with the given passwordMethods inherited from class convex.core.crypto.wallet.AWalletEntry
unlock
-
Constructor Details
-
HotWalletEntry
-
-
Method Details
-
create
-
getPublicKey
Description copied from interface:IWalletEntry
Get the public key associated with this wallet entry- Returns:
- Public Key
-
getKeyPair
Description copied from interface:IWalletEntry
Gets the key pair associated with this wallet entry, if unlocked- Returns:
- Key pair instance, or null if not available (locked)
-
isLocked
public boolean isLocked()Description copied from interface:IWalletEntry
Check if this wallet entry is locked.- Returns:
- True if wallet is locked
-
toString
-
sign
-
getIdenticonData
Description copied from class:AWalletEntry
Returns the data to be used for a wallet identicon. Should be the public account key- Specified by:
getIdenticonData
in classAWalletEntry
- Returns:
- Data to be used for an identicon
-
tryUnlock
public boolean tryUnlock(char[] password) Description copied from interface:IWalletEntry
Try to unlock a wallet with the given password- Parameters:
password
- Password to unlock- Returns:
- true if unlocked, false otherwise
-
lock
public void lock(char[] password) Description copied from interface:IWalletEntry
Lock the wallet entry. Locking makes the wallet entry unusable until unlocked.- Parameters:
password
- Password with which to lock wallet
-
getPasswordHash
-