public interface SigningIdentity extends Identity
Modifier and Type | Method and Description |
---|---|
byte[] |
sign(byte[] msg)
Sings a message with the secret key and the corresponding certificate
|
boolean |
verifySignature(byte[] msg,
byte[] sig)
Verifies a signature on a message
|
createSerializedIdentity
byte[] sign(byte[] msg) throws CryptoException, InvalidArgumentException
msg
- CryptoException
InvalidArgumentException
boolean verifySignature(byte[] msg, byte[] sig) throws CryptoException, InvalidArgumentException
msg
- sig
- CryptoException
InvalidArgumentException
Copyright © 2022. All rights reserved.