toX25519PublicKeyOrNull

@JvmStatic
@JvmName(name = "getOrNull")
fun String.toX25519PublicKeyOrNull(): 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 or null


@JvmStatic
@JvmName(name = "getOrNull")
fun ByteArray.toX25519PublicKeyOrNull(): X25519.PublicKey?(source)

Transforms provided bytes into a x25519 public key.

Return

X25519.PublicKey or null