| Package | Description |
|---|---|
| com.exonum.binding.common.crypto | |
| com.exonum.binding.common.message | |
| com.exonum.binding.common.serialization |
| Modifier and Type | Method and Description |
|---|---|
static PrivateKey |
PrivateKey.fromBytes(byte[] bytes)
Creates a
PrivateKey from a byte array. |
static PrivateKey |
PrivateKey.fromHexString(java.lang.String stringKey)
Creates a
PrivateKey from a hexadecimal string. |
PrivateKey |
KeyPair.getPrivateKey()
Returns a private key of this pair.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
Ed25519CryptoFunction.signMessage(byte[] message,
PrivateKey privateKey) |
byte[] |
CryptoFunction.signMessage(byte[] message,
PrivateKey privateKey)
Given a
privateKey, computes and returns a signature for the supplied message. |
| Modifier and Type | Method and Description |
|---|---|
default BinaryMessage |
BinaryMessage.sign(CryptoFunction cryptoFunction,
PrivateKey authorSecretKey)
Signs this message, creating a new signed binary message.
|
| Modifier and Type | Method and Description |
|---|---|
static Serializer<PrivateKey> |
StandardSerializers.privateKey()
Returns a serializer of private keys.
|
Copyright © 2018 Exonum. All rights reserved.