Module dsnp_graph_sdk_node::api
source · Expand description
API implementation for the DSNP Graph SDK using Neon
This crate provides a bridge between the DSNP graph sdk and Node.js.
It is intended to be used as a dependency in the @projectlibertylabs/graph-sdk
npm package.
Functions
- Function to applyActions to the graph state
- Function to commit pending changes to a graph state
- Check if graph contains user
- Function to deserialize DSNP keys
- Function to export graph updates
- Function to export graph updates for a single user graph
- Function to force calculate graphs for user
- Function to free the graph state
- Function to generate X25519 keys and return GraphKeyPair type JsObject
- Function to get connections for user from the graph state (getConnectionsForUserGraph)
- Function to get connections for user from the graph state (getConnectionsWithoutKeys)
- Get graph config from the environment
- Get total count of graph states
- Get graph users count for given graph state
- Function to get one sided private friendship connections for user from the graph state (getOneSidedPrivateFriendshipConnections)
- Function to get public keys for user from the graph state (getPublicKeys)
- Function to get SchemaId for given ConnectionType and PrivacyType
- Function to import user data
- Create a new graph state
- Neon implementation of print_hello_graph function
- Function to remove user graph from the graph state
- Function to rollback pending changes in a graph state