Signer.SignRequestRejectedException| Constructor and Description |
|---|
SignerEd25519()
Constructor for signer.
|
SignerEd25519(byte[] data)
Creates a new signer from a slice of bytes.
|
| Modifier and Type | Method and Description |
|---|---|
Identity |
getIdentity()
Creates 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.
|
public SignerEd25519()
public SignerEd25519(byte[] data)
data - a public key in byte formpublic byte[] sign(byte[] msg)
public Scalar getPrivate()
getPrivate in interface Signerpublic Point getPublic()
public Identity getIdentity()
getIdentity in interface Signerpublic byte[] serialize()
throws IOException
serialize in interface SignerIOException - if something went wrong with I/OCopyright © 2018. All rights reserved.