kmp-tor
Toggle table of contents
2.3.0
common
Platform filter
common
Switch theme
Search in API
kmp-tor
runtime-core
/
io.matthewnelson.kmp.tor.runtime.core.key
/
X25519
/
PublicKey
/
Companion
Companion
object
Companion
(
source
)
Members
Functions
to
X25519Public
Key
Link copied to clipboard
@
JvmStatic
@
JvmName
(
name
=
"get"
)
fun
ByteArray
.
toX25519PublicKey
(
)
:
X25519.PublicKey
Transforms provided bytes into a x25519 public key.
@
JvmStatic
@
JvmName
(
name
=
"get"
)
fun
String
.
toX25519PublicKey
(
)
:
X25519.PublicKey
Parses a String for a x25519 public key.
to
X25519Public
Key
Or
Null
Link copied to clipboard
@
JvmStatic
@
JvmName
(
name
=
"getOrNull"
)
fun
ByteArray
.
toX25519PublicKeyOrNull
(
)
:
X25519.PublicKey
?
Transforms provided bytes into a x25519 public key.
@
JvmStatic
@
JvmName
(
name
=
"getOrNull"
)
fun
String
.
toX25519PublicKeyOrNull
(
)
:
X25519.PublicKey
?
Parses a String for a x25519 public key.