Package-level declarations

Types

Link copied to clipboard
expect object AesCipher
actual object AesCipher
actual object AesCipher
Link copied to clipboard
Link copied to clipboard
expect object ChaCha20

ChaCha20 stream cipher implementation.

actual object ChaCha20
actual object ChaCha20
Link copied to clipboard
data class CipherText(val cipherText: ByteString, val iv: ByteString)

Encrypted text. Contains the ciphertext bytes and an initialisation vector to be used during the AES decryption.

Link copied to clipboard
expect object EcdhProvider
actual object EcdhProvider
actual object EcdhProvider
Link copied to clipboard
expect object Hkdf
actual object Hkdf
actual object Hkdf
Link copied to clipboard
expect object HmacSha256

HMAC-SHA256 message authentication code.

actual object HmacSha256
actual object HmacSha256
Link copied to clipboard
interface Key

Common interface for both public and secret keys.

Link copied to clipboard
object Nip44

NIP-44 encrypted direct messages implementation.

Link copied to clipboard
data class Nip44CipherText(val version: Byte, val nonce: ByteString, val ciphertext: ByteString, val mac: ByteString)
Link copied to clipboard

NIP-44 padding scheme for encrypted messages.

Link copied to clipboard
data class PubKey(val key: ByteString) : Key

Nostr public key.

Link copied to clipboard
expect object SchnorrSigner
actual object SchnorrSigner
actual object SchnorrSigner
Link copied to clipboard
data class SecKey(val key: ByteString) : Key

Nostr secret key.

Link copied to clipboard