toX25519PublicKey

@JvmStatic
@JvmName(name = "get")
fun String.toX25519PublicKey(): X25519.PublicKey(source)

Parses a String for a x25519 public key.

String can be a Base 16/32/64 encoded raw value.

Return

X25519.PublicKey

Throws

if no key is found


@JvmStatic
@JvmName(name = "get")
fun ByteArray.toX25519PublicKey(): X25519.PublicKey(source)

Transforms provided bytes into a x25519 public key.

Return

X25519.PublicKey

Throws

if byte array size is inappropriate