tuweni / org.apache.tuweni.crypto.sodium / KeyExchange / PublicKey

PublicKey

class PublicKey (source)

A KeyExchange public key.

Functions

bytes

Provides the bytes of this key.

fun bytes(): Bytes!

bytesArray

Provides the bytes of this key.

fun bytesArray(): ByteArray!

equals

fun equals(other: Any?): Boolean

fromBytes

Create a PublicKey from an array of bytes.

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

hashCode

fun hashCode(): Int

length

Obtain the length of the key in bytes (32).

static fun length(): Int