public interface Signer
| Modifier and Type | Interface and Description |
|---|---|
static class |
Signer.SignRequestRejectedException |
| Modifier and Type | Method and Description |
|---|---|
Identity |
getIdentity()
Returns an identity of the signer.
|
Scalar |
getPrivate()
Returns the private key of the signer, or throws a NoPrivateKey exception.
|
Point |
getPublic()
Returns the public key of the signer or throws a NoPublicKey exception.
|
byte[] |
serialize()
Returns an array of bytes representing the signer.
|
byte[] |
sign(byte[] msg)
Signs the sha256 hash of the message.
|
byte[] sign(byte[] msg)
throws Signer.SignRequestRejectedException
msg - Signer.SignRequestRejectedExceptionScalar getPrivate() throws CothorityCryptoException
CothorityCryptoExceptionPoint getPublic() throws CothorityCryptoException
CothorityCryptoExceptionIdentity getIdentity() throws CothorityCryptoException
CothorityCryptoExceptionbyte[] serialize()
throws IOException
IOExceptionCopyright © 2018. All rights reserved.