Class TkmCypherProviderBCQTESLAPSSC1Round1


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

      • TkmCypherProviderBCQTESLAPSSC1Round1

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