Uses of Class
com.exonum.binding.common.crypto.KeyPair
Package | Description |
---|---|
com.exonum.binding.common.crypto | |
com.exonum.binding.common.message | |
com.exonum.binding.testkit |
-
Uses of KeyPair in com.exonum.binding.common.crypto
Methods in com.exonum.binding.common.crypto that return KeyPair Modifier and Type Method Description KeyPair
CryptoFunction. generateKeyPair()
Generates a private key and a corresponding public key using a random seed.KeyPair
CryptoFunction. generateKeyPair(byte[] seed)
Generates a private key and a corresponding public key using aseed
byte array.static KeyPair
KeyPair. newInstance(byte[] privateKey, byte[] publicKey)
Creates aKeyPair
from two byte arrays, representingprivateKey
andpublicKey
.static KeyPair
KeyPair. newInstance(PrivateKey privateKey, PublicKey publicKey)
Creates a new KeyPair from the given key pairs. -
Uses of KeyPair in com.exonum.binding.common.message
Methods in com.exonum.binding.common.message with parameters of type KeyPair Modifier and Type Method Description TransactionMessage
TransactionMessage.Builder. sign(KeyPair keys)
Signs the message with the given Ed25519 keys, creating a new signed binary transaction message.TransactionMessage.Builder
TransactionMessage.Builder. signedWith(KeyPair keys)
Sets the Ed25519 key pair to use to sign the message.TransactionMessage.Builder
TransactionMessage.Builder. signedWith(KeyPair keys, CryptoFunction crypto)
Sets the key pair and the crypto function to use to sign the message. -
Uses of KeyPair in com.exonum.binding.testkit
Methods in com.exonum.binding.testkit that return KeyPair Modifier and Type Method Description KeyPair
EmulatedNode. getServiceKeyPair()
Returns a service key pair of this node.Constructors in com.exonum.binding.testkit with parameters of type KeyPair Constructor Description EmulatedNode(int validatorId, KeyPair serviceKeyPair)
Creates a context of an emulated node.