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 HotWalletEntryReturns the data to be used for a wallet identicon.Gets the key pair associated with this wallet entry, if unlockedprotected HashgetPasswordHash(char[] password) Get the public key associated with this wallet entrybooleanisLocked()Check if this wallet entry is locked.voidlock(char[] password) Lock the wallet entry.<R extends ACell>
SignedData<R> sign(R message) toString()booleantryUnlock(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:IWalletEntryGet the public key associated with this wallet entry- Returns:
- Public Key
-
getKeyPair
Description copied from interface:IWalletEntryGets 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:IWalletEntryCheck if this wallet entry is locked.- Returns:
- True if wallet is locked
-
toString
-
sign
-
getIdenticonData
Description copied from class:AWalletEntryReturns the data to be used for a wallet identicon. Should be the public account key- Specified by:
getIdenticonDatain classAWalletEntry- Returns:
- Data to be used for an identicon
-
tryUnlock
public boolean tryUnlock(char[] password) Description copied from interface:IWalletEntryTry 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:IWalletEntryLock the wallet entry. Locking makes the wallet entry unusable until unlocked.- Parameters:
password- Password with which to lock wallet
-
getPasswordHash
-