crypto / org.apache.tuweni.crypto.mikuli / SecretKey / fromBytes

fromBytes

static fun fromBytes(bytes: ByteArray): SecretKey (source)

Create a private key from a byte array

Parameters

bytes - the bytes of the private key

Return
a new SecretKey object

static fun fromBytes(bytes: Bytes): SecretKey (source)

Create a private key from bytes

Parameters

bytes - the bytes of the private key

Return
a new SecretKey object