Class TkmCypherProviderBCQTESLAPSSC1Round2


  • public class TkmCypherProviderBCQTESLAPSSC1Round2
    extends Object
    Author:
    Giovanni Antino
    • Constructor Detail

      • TkmCypherProviderBCQTESLAPSSC1Round2

        public TkmCypherProviderBCQTESLAPSSC1Round2()
    • 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