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