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 Details

    • fromBytes

      public static PrivateKey fromBytes​(byte[] bytes)
      Creates a PrivateKey from a byte array. The array is defensively copied.
    • fromHexString

      public static PrivateKey fromHexString​(String stringKey)
      Creates a PrivateKey from a hexadecimal string.