Package com.h2tcoin.takamakachain.wallet
Class AbstractCypherProvider
- java.lang.Object
-
- com.h2tcoin.takamakachain.wallet.AbstractCypherProvider
-
- Direct Known Subclasses:
CypherProviderBCED25519
public abstract class AbstractCypherProvider extends Object
- Author:
- giovanni.antino@h2tcoin.com
-
-
Constructor Summary
Constructors Constructor Description AbstractCypherProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract String
getPublicKeyAtIndex(int keyIndex)
abstract String
getSignatureForKeyAtIntex(int i, String message)
abstract TransactionBean
getTransactionBean(int i, String message)
abstract String
getTransactionBeanJson(int i, String message)
aiw.getTransactionBean( keyIndex, TransactionHelper.getInstance().encodeInternalTransactionBeanToGson( InternalTransactionHelper.createStakeTransaction( getPublicKeyAtIndex(keyIndex), to, new Date(), greenValue ) )abstract KeyContexts.WalletCypher
getWalletCypher()
abstract String
getWalletName()
protected abstract void
setKeyContext(KeyContexts.WalletCypher cypher)
abstract boolean
verifyTransactionSignature(String gsonTransactionBean)
-
-
-
Method Detail
-
getWalletCypher
public abstract KeyContexts.WalletCypher getWalletCypher()
- Returns:
-
setKeyContext
protected abstract void setKeyContext(KeyContexts.WalletCypher cypher)
- Parameters:
cypher
-
-
verifyTransactionSignature
public abstract boolean verifyTransactionSignature(String gsonTransactionBean) throws Exception
- Parameters:
gsonTransactionBean
-- Returns:
- Throws:
Exception
-
getTransactionBeanJson
public abstract String getTransactionBeanJson(int i, String message) throws Exception
aiw.getTransactionBean( keyIndex, TransactionHelper.getInstance().encodeInternalTransactionBeanToGson( InternalTransactionHelper.createStakeTransaction( getPublicKeyAtIndex(keyIndex), to, new Date(), greenValue ) )- Parameters:
i
-message
-- Returns:
- Throws:
Exception
-
getTransactionBean
public abstract TransactionBean getTransactionBean(int i, String message) throws Exception
- Parameters:
i
-message
-- Returns:
- Throws:
Exception
-
getSignatureForKeyAtIntex
public abstract String getSignatureForKeyAtIntex(int i, String message) throws Exception
- Parameters:
i
-message
-- Returns:
- Throws:
Exception
-
getWalletName
public abstract String getWalletName()
- Returns:
- current wallet name
-
-