Module api

Module api 

Source
Expand description

Public API matching the spec Clean API implementation for saorsa-core

This module provides the simplified public API for:

  • Identity registration and management
  • Presence and device management
  • Storage with saorsa-seal and saorsa-fec

Structs§

GroupIdentityPacketV1
Group identity packet (canonical)
GroupKeyPair
Keypair for group signatures
IdentityPacketV1
Minimal identity packet compatible with Communitas group flows
MemberRef
Member reference for group identities

Functions§

get_data
Retrieve data from the network
get_identity
Get an identity by its key
get_presence
Get presence information for an identity
group_identity_canonical_sign_bytes
Canonical bytes for group identity signing: b“saorsa-group:identity:v1“ || id || membership_root
group_identity_create
Create a canonical group identity and keypair
group_identity_fetch
Fetch a group identity by id key
group_identity_publish
Publish a group identity packet under its id key
group_identity_update_members_signed
Update group members with signature verification over canonical bytes
identity_fetch
Fetch identity packet in canonical format
register_headless
Register a headless storage node
register_identity
Register a new identity on the network
register_presence
Register presence on the network
set_active_device
Set the active device for an identity
set_dht_client
Install a process-global DHT client for API operations.
store_data
Store data on the network
store_dyad
Store data for a dyad (2-person group)
store_with_fec
Store data with custom FEC parameters