Expand description
UniFFI bindings for nostr-double-ratchet
This crate provides FFI-friendly wrappers around the core nostr-double-ratchet library for use in iOS and Android applications via UniFFI.
Structs§
- Decrypt
Result - Result of decrypting a message.
- FfiDevice
Entry - FFI-friendly device entry for AppKeys.
- FfiGroup
Data - FFI-friendly group metadata payload.
- FfiKey
Pair - FFI-friendly keypair with hex-encoded keys.
- Group
Create Fanout - Metadata fanout summary for group creation.
- Group
Create Result - Result of creating a group through GroupManager.
- Group
Decrypted Result - Decrypted group event returned by GroupManager.
- Group
Outer Subscription Plan Result - Shared outer-subscription sync plan for group sender-event authors.
- Group
Send Result - Result of sending a group event through GroupManager.
- Invite
Accept Result - Result of accepting an invite.
- Invite
Handle - FFI wrapper for Invite.
- Invite
Process Result - Result of processing an invite response.
- Message
Push Session State Result - Session-state snapshot used to inspect message-push routing without reading storage files.
- PubSub
Event - Event emitted by SessionManager for external publish/subscribe handling.
- Send
Result - Result of sending a message.
- Send
Text Result - Result of sending a text message including stable inner id.
- Session
Handle - FFI wrapper for Session.
- Session
Manager Accept Invite Result - Result of accepting an invite through SessionManager.
- Session
Manager Handle - FFI wrapper for SessionManager.
Enums§
- NdrError
- FFI-friendly error type.
Functions§
- create_
signed_ app_ keys_ event - Create a signed AppKeys event JSON for publishing to relays.
- derive_
public_ key - Derive a public key from a hex-encoded private key.
- generate_
keypair - Generate a new keypair.
- parse_
app_ keys_ event - Parse an AppKeys event JSON and return the contained device entries.
- resolve_
conversation_ candidate_ pubkeys - Resolve conversation routing candidates for a decrypted rumor.
- resolve_
latest_ app_ keys_ devices - Resolve the latest authorized device list from a set of AppKeys event JSON strings.
- version
- Returns the version of the ndr-ffi crate.