Skip to main content

Crate ndr_ffi

Crate ndr_ffi 

Source
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§

DecryptResult
Result of decrypting a message.
FfiDeviceEntry
FFI-friendly device entry for AppKeys.
FfiGroupData
FFI-friendly group metadata payload.
FfiKeyPair
FFI-friendly keypair with hex-encoded keys.
GroupCreateFanout
Metadata fanout summary for group creation.
GroupCreateResult
Result of creating a group through GroupManager.
GroupDecryptedResult
Decrypted group event returned by GroupManager.
GroupOuterSubscriptionPlanResult
Shared outer-subscription sync plan for group sender-event authors.
GroupSendResult
Result of sending a group event through GroupManager.
InviteAcceptResult
Result of accepting an invite.
InviteHandle
FFI wrapper for Invite.
InviteProcessResult
Result of processing an invite response.
MessagePushSessionStateResult
Session-state snapshot used to inspect message-push routing without reading storage files.
PubSubEvent
Event emitted by SessionManager for external publish/subscribe handling.
SendResult
Result of sending a message.
SendTextResult
Result of sending a text message including stable inner id.
SessionHandle
FFI wrapper for Session.
SessionManagerAcceptInviteResult
Result of accepting an invite through SessionManager.
SessionManagerHandle
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.