lib
common
jvm
lib
/
app.cash.nostrino.crypto
/
SecKey
Sec
Key
data
class
SecKey
(
val
key
:
ByteString
)
:
Key
Nostr secret key.
Members
Members & Extensions
Constructors
Sec
Key
Link copied to clipboard
constructor
(
key
:
ByteString
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
key
Link copied to clipboard
val
key
:
ByteString
nsec
Link copied to clipboard
val
nsec
:
String
nip-19 bech32 encoded form of this key
pub
Key
Link copied to clipboard
val
pubKey
:
PubKey
Functions
encoded
Link copied to clipboard
open
override
fun
encoded
(
)
:
String
encrypt
Link copied to clipboard
jvm
fun
SecKey
.
encrypt
(
to
:
PubKey
,
plainText
:
String
)
:
CipherText
hex
Link copied to clipboard
open
override
fun
hex
(
)
:
String
shared
Secret
With
Link copied to clipboard
fun
sharedSecretWith
(
pub
:
PubKey
)
:
ByteArray
sign
Link copied to clipboard
fun
sign
(
payload
:
ByteString
)
:
ByteString
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String