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 static KeyPairKeyPair. createKeyPair(byte[] privateKey, byte[] publicKey)Creates aKeyPairfrom two byte arrays, representingprivateKeyandpublicKey.KeyPairCryptoFunction. generateKeyPair()Generates a private key and a corresponding public key using a random seed.KeyPairCryptoFunction. generateKeyPair(byte[] seed)Generates a private key and a corresponding public key using aseedbyte array. -
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 TransactionMessageTransactionMessage.Builder. sign(KeyPair keys)Signs the message with the given Ed25519 keys, creating a new signed binary transaction message.TransactionMessage.BuilderTransactionMessage.Builder. signedWith(KeyPair keys)Sets the Ed25519 key pair to use to sign the message.TransactionMessage.BuilderTransactionMessage.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 KeyPairEmulatedNode. 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.