#[no_mangle]
pub unsafe extern "C" fn Java_io_projectliberty_graphsdk_Native_generateKeyPair<'local>(
    env: JNIEnv<'local>,
    _class: JClass<'local>,
    graph_key_type: jint
) -> JByteArray<'local>
Expand description

Generate GraphKeyPair for a given GraphKeyType.

Arguments

  • graph_key_type - the type of the key to generate

Returns

  • jbyteArray - the serialized GraphKeyPair

Errors

  • SdkJniError - if generating GraphKeyPair fails
  • SdkJniError - if GraphKeyType is InvalidHandle