Companion

Functions

Link copied to clipboard
@JvmStatic
@JvmName(name = "get")
fun ByteArray.toX25519PrivateKey(): X25519.PrivateKey

Transforms provided bytes into a x25519 private key.

@JvmStatic
@JvmName(name = "get")
fun String.toX25519PrivateKey(): X25519.PrivateKey

Parses a String for a x25519 private key.

Link copied to clipboard
@JvmStatic
@JvmName(name = "getOrNull")
fun ByteArray.toX25519PrivateKeyOrNull(): X25519.PrivateKey?

Transforms provided bytes into a x25519 private key.

@JvmStatic
@JvmName(name = "getOrNull")
fun String.toX25519PrivateKeyOrNull(): X25519.PrivateKey?

Parses a String for a x25519 private key.