Package | Description |
---|---|
com.exonum.binding.common.crypto | |
com.exonum.binding.common.message | |
com.exonum.binding.common.serialization |
Modifier and Type | Method and Description |
---|---|
static PublicKey |
PublicKey.fromBytes(byte[] bytes)
Creates a
PublicKey from a byte array. |
static PublicKey |
PublicKey.fromHexString(java.lang.String stringKey)
Creates a
PublicKey from a hexadecimal string. |
PublicKey |
KeyPair.getPublicKey()
Returns a public key of this pair.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Ed25519CryptoFunction.verify(byte[] message,
byte[] signature,
PublicKey publicKey) |
boolean |
CryptoFunction.verify(byte[] message,
byte[] signature,
PublicKey publicKey)
Given a
publicKey , verifies that signature is a valid signature for the
supplied message . |
Modifier and Type | Method and Description |
---|---|
default boolean |
BinaryMessage.verify(CryptoFunction cryptoFunction,
PublicKey authorPublicKey)
Verifies the cryptographic signature against the given public key.
|
Modifier and Type | Method and Description |
---|---|
static Serializer<PublicKey> |
StandardSerializers.publicKey()
Returns a serializer of public keys.
|
Copyright © 2018 Exonum. All rights reserved.