tuweni / org.apache.tuweni.crypto.sodium / Box / PublicKey / fromBytes

fromBytes

static fun fromBytes(bytes: Bytes!): PublicKey! (source)

Create a PublicKey from an array of bytes.

The byte array must be of length #length().

Parameters

bytes - Bytes!: The bytes for the public key.

Return
PublicKey!: A public key.

static fun fromBytes(bytes: ByteArray!): PublicKey! (source)

Create a PublicKey from an array of bytes.

The byte array must be of length #length().

Parameters

bytes - ByteArray!: The bytes for the public key.

Return
PublicKey!: A public key.