Uses of Class
com.exonum.binding.common.crypto.PublicKey
-
Packages that use PublicKey Package Description com.exonum.binding.common.configuration com.exonum.binding.common.crypto com.exonum.binding.common.message com.exonum.binding.common.serialization -
-
Uses of PublicKey in com.exonum.binding.common.configuration
Methods in com.exonum.binding.common.configuration that return PublicKey Modifier and Type Method Description abstract PublicKey
ValidatorKey. consensusKey()
Consensus key is used for messages related to the consensus algorithm.abstract PublicKey
ValidatorKey. serviceKey()
Service key is used for services, for example, the configuration updater service.Methods in com.exonum.binding.common.configuration with parameters of type PublicKey Modifier and Type Method Description abstract ValidatorKey.Builder
ValidatorKey.Builder. consensusKey(PublicKey consensusKey)
abstract ValidatorKey.Builder
ValidatorKey.Builder. serviceKey(PublicKey serviceKey)
-
Uses of PublicKey in com.exonum.binding.common.crypto
Methods in com.exonum.binding.common.crypto that return PublicKey Modifier and Type Method Description static PublicKey
PublicKey. fromBytes(byte[] bytes)
Creates aPublicKey
from a byte array.static PublicKey
PublicKey. fromHexString(String stringKey)
Creates aPublicKey
from a hexadecimal string.PublicKey
KeyPair. getPublicKey()
Returns a public key of this pair.Methods in com.exonum.binding.common.crypto with parameters of type PublicKey Modifier and Type Method Description boolean
CryptoFunction. verify(byte[] message, byte[] signature, PublicKey publicKey)
Given apublicKey
, verifies thatsignature
is a valid signature for the suppliedmessage
.boolean
Ed25519CryptoFunction. verify(byte[] message, byte[] signature, PublicKey publicKey)
-
Uses of PublicKey in com.exonum.binding.common.message
Methods in com.exonum.binding.common.message that return PublicKey Modifier and Type Method Description PublicKey
TransactionMessage. getAuthor()
Returns a public key of the author of the transaction message. -
Uses of PublicKey in com.exonum.binding.common.serialization
Methods in com.exonum.binding.common.serialization that return types with arguments of type PublicKey Modifier and Type Method Description static Serializer<PublicKey>
StandardSerializers. publicKey()
Returns a serializer of public keys.
-