Class AbstractCypherProvider

  • Direct Known Subclasses:
    CypherProviderBCED25519

    public abstract class AbstractCypherProvider
    extends Object
    Author:
    giovanni.antino@h2tcoin.com
    • Constructor Detail

      • AbstractCypherProvider

        public AbstractCypherProvider()
    • Method Detail

      • 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
      • 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
      • getPublicKeyAtIndex

        public abstract String getPublicKeyAtIndex​(int keyIndex)
                                            throws Exception
        Parameters:
        keyIndex - sequence number for the key in wallet
        Returns:
        public key string gson
        Throws:
        Exception