pub fn keypair_to_js<'a, C: Context<'a>>(
    cx: &mut C,
    key_pair: &GraphKeyPair
) -> NeonResult<Handle<'a, JsObject>>
Expand description

Function to convert GraphKeyPair to JsObject

Arguments

  • cx - Neon FunctionContext
  • key_pair - GraphKeyPair

Returns

  • JsResult<JsObject> - Neon JsObject

Errors

  • Throws a Neon error if the key pair cannot be converted