#[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 state
  • user_id - a pointer to a user id

Returns

  • DsnpPublicKeys - the pointer to the public keys

Errors

  • GraphError - if the public keys cannot be retrieved