Uses of Class
com.exonum.binding.common.crypto.PrivateKey
Package | Description |
---|---|
com.exonum.binding.common.crypto | |
com.exonum.binding.common.serialization |
-
Uses of PrivateKey in com.exonum.binding.common.crypto
Methods in com.exonum.binding.common.crypto that return PrivateKey Modifier and Type Method Description static PrivateKey
PrivateKey. fromBytes(byte[] bytes)
Creates aPrivateKey
from a byte array.static PrivateKey
PrivateKey. fromHexString(java.lang.String stringKey)
Creates aPrivateKey
from a hexadecimal string.PrivateKey
KeyPair. getPrivateKey()
Returns a private key of this pair.Methods in com.exonum.binding.common.crypto with parameters of type PrivateKey Modifier and Type Method Description static KeyPair
KeyPair. newInstance(PrivateKey privateKey, PublicKey publicKey)
Creates a new KeyPair from the given key pairs.byte[]
CryptoFunction. signMessage(byte[] message, PrivateKey privateKey)
Given aprivateKey
, computes and returns a signature for the suppliedmessage
. -
Uses of PrivateKey in com.exonum.binding.common.serialization
Methods in com.exonum.binding.common.serialization that return types with arguments of type PrivateKey Modifier and Type Method Description static Serializer<PrivateKey>
StandardSerializers. privateKey()
Returns a serializer of private keys.