Package com.h2tcoin.takamakachain.wallet
Class TkmCypherProviderBCQTESLAPSSC1Round1
- java.lang.Object
-
- com.h2tcoin.takamakachain.wallet.TkmCypherProviderBCQTESLAPSSC1Round1
-
public class TkmCypherProviderBCQTESLAPSSC1Round1 extends Object
- Author:
- Giovanni Antino
-
-
Constructor Summary
Constructors Constructor Description TkmCypherProviderBCQTESLAPSSC1Round1()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TkmCypherBean
sign(org.bouncycastle.crypto.AsymmetricCipherKeyPair keyPair, String message)
static TkmCypherBean
verify(String publicKey, String signature, String message)
static TkmCypherBean
verify(org.bouncycastle.crypto.AsymmetricCipherKeyPair keyPair, String signature, String message)
-
-
-
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 indexmessage
- 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 indexsignature
-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
-
-