-
Method Summary
-
Method Details
-
sign message with the given keyPair
- Parameters:
message
- the message to be signed, must be hash value
keyPair
- the keyPair used to generate the signature
- Returns:
- the signature result
-
-
java.lang.String signWithStringSignature(
java.lang.String message,
CryptoKeyPair keyPair)
-
boolean verify(java.lang.String publicKey,
java.lang.String message,
java.lang.String signature)
verify signature
- Parameters:
publicKey
- the publickey
message
- the message, must be hash value
signature
- the signature to be verified
- Returns:
- true/false
-
boolean verify(java.lang.String publicKey,
byte[] message,
byte[] signature)