Class TkmCypherProviderBCED25519


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

      • TkmCypherProviderBCED25519

        public TkmCypherProviderBCED25519()
    • Method Detail

      • sign

        public static TkmCypherBean sign​(org.bouncycastle.crypto.AsymmetricCipherKeyPair keyPair,
                                         String message)
        Parameters:
        keyPair - is the public and private key generated by using the sign key index
        message - is the json format of the Internal Transaction Bean both with a generated random seed and the wallet cypher name
        Message content: : tb.getMessage() + tb.getRandomSeed() + tb.getWalletCypher().name()
        Returns:
        TkmCypherBean - Java Bean Class containing the generated signature
      • verify

        public static TkmCypherBean verify​(org.bouncycastle.crypto.AsymmetricCipherKeyPair keyPair,
                                           String signature,
                                           String message)
        Parameters:
        keyPair - is the public and private key generated by using the sign key index
        signature -
        message - is the json format of the Internal Transaction Bean both with a generated random seed and the wallet cypher name
        Message content: : tb.getMessage() + tb.getRandomSeed() + tb.getWalletCypher().name()
        Returns:
        TkmCypherBean
      • verify

        public static TkmCypherBean verify​(String publicKey,
                                           String signature,
                                           String message)
        Parameters:
        publicKey -
        signature -
        message - is the json format of the Internal Transaction Bean both with a generated random seed and the wallet cypher name
        Message content: : tb.getMessage() + tb.getRandomSeed() + tb.getWalletCypher().name()
        Returns:
        TkmCypherBean