Uses of Class
com.exonum.binding.common.crypto.PublicKey
-
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(java.lang.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 static KeyPair
KeyPair. newInstance(PrivateKey privateKey, PublicKey publicKey)
Creates a new KeyPair from the given key pairs.boolean
CryptoFunction. verify(byte[] message, byte[] signature, PublicKey publicKey)
Given apublicKey
, verifies thatsignature
is a valid signature for the suppliedmessage
. -
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.PublicKey
SignedMessage. getAuthorPk()
Returns the key of the message author. -
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. -
Uses of PublicKey in com.exonum.binding.core.runtime
Methods in com.exonum.binding.core.runtime that return PublicKey Modifier and Type Method Description PublicKey
NodeProxy. getPublicKey()
Methods in com.exonum.binding.core.runtime with parameters of type PublicKey Modifier and Type Method Description void
ServiceRuntime. executeTransaction(int serviceId, java.lang.String interfaceName, int txId, byte[] arguments, BlockchainData blockchainData, int callerServiceId, HashCode txMessageHash, PublicKey authorPublicKey)
Executes a transaction belonging to the given service. -
Uses of PublicKey in com.exonum.binding.core.service
Methods in com.exonum.binding.core.service that return PublicKey Modifier and Type Method Description PublicKey
Node. getPublicKey()
Returns the service public key of this node.PublicKey
NodeFake. getPublicKey()
Methods in com.exonum.binding.core.service that return types with arguments of type PublicKey Modifier and Type Method Description java.util.Optional<PublicKey>
ExecutionContext. getAuthorPk()
Returns public key of the transaction author; orOptional.empty()
if no transaction message corresponds to this context.Methods in com.exonum.binding.core.service with parameters of type PublicKey Modifier and Type Method Description ExecutionContext.Builder
ExecutionContext.Builder. authorPk(PublicKey authorPk)
Sets transaction author public key for the context.Constructors in com.exonum.binding.core.service with parameters of type PublicKey Constructor Description NodeFake(TemporaryDb database, java.lang.String serviceName, PublicKey publicKey)
Creates a new node fake with the given database. -
Uses of PublicKey in com.exonum.binding.time
Methods in com.exonum.binding.time that return types with arguments of type PublicKey Modifier and Type Method Description ProofMapIndexProxy<PublicKey,java.time.ZonedDateTime>
TimeSchema. getValidatorsTimes()
Returns the table that stores time for every validator.