Function dsnp_graph_sdk_ffi::graph_get_public_keys
source · #[no_mangle]
pub unsafe extern "C" fn graph_get_public_keys(
graph_state: *mut GraphState,
user_id: *const DsnpUserId
) -> FFIResult<DsnpPublicKeys, GraphError>
Expand description
Get a list of published and imported public keys associated with a user
Safety
This function is unsafe because it dereferences a raw pointer
Arguments
graph_state
- a pointer to the graph stateuser_id
- a pointer to a user id
Returns
DsnpPublicKeys
- the pointer to the public keys
Errors
GraphError
- if the public keys cannot be retrieved