Package com.exonum.binding.common.crypto
Class PrivateKey
java.lang.Object
com.exonum.binding.common.crypto.AbstractKey
com.exonum.binding.common.crypto.PrivateKey
public final class PrivateKey extends AbstractKey
Represent a private key in a digital signature system.
-
Method Summary
Modifier and Type Method Description static PrivateKey
fromBytes(byte[] bytes)
Creates aPrivateKey
from a byte array.static PrivateKey
fromHexString(java.lang.String stringKey)
Creates aPrivateKey
from a hexadecimal string.
-
Method Details
-
fromBytes
Creates aPrivateKey
from a byte array. The array is defensively copied. -
fromHexString
Creates aPrivateKey
from a hexadecimal string.
-