2022-11-23 16:32:25 +00:00
|
|
|
/* DO NOT EDIT THIS FILE - it is machine generated */
|
|
|
|
#include <jni.h>
|
2022-12-06 12:58:56 +00:00
|
|
|
/* Header for class ethereum_ckzg4844_CKZG4844JNI */
|
2022-11-23 16:32:25 +00:00
|
|
|
|
2022-12-06 12:58:56 +00:00
|
|
|
#ifndef _Included_ethereum_ckzg4844_CKZG4844JNI
|
|
|
|
#define _Included_ethereum_ckzg4844_CKZG4844JNI
|
2022-11-23 16:32:25 +00:00
|
|
|
#ifdef __cplusplus
|
2022-11-25 13:28:03 +00:00
|
|
|
extern "C"
|
|
|
|
{
|
2022-11-23 16:32:25 +00:00
|
|
|
#endif
|
2022-12-06 12:58:56 +00:00
|
|
|
#undef ethereum_ckzg4844_CKZG4844JNI_BYTES_PER_COMMITMENT
|
|
|
|
#define ethereum_ckzg4844_CKZG4844JNI_BYTES_PER_COMMITMENT 48L
|
|
|
|
#undef ethereum_ckzg4844_CKZG4844JNI_BYTES_PER_PROOF
|
|
|
|
#define ethereum_ckzg4844_CKZG4844JNI_BYTES_PER_PROOF 48L
|
|
|
|
#undef ethereum_ckzg4844_CKZG4844JNI_BYTES_PER_FIELD_ELEMENT
|
|
|
|
#define ethereum_ckzg4844_CKZG4844JNI_BYTES_PER_FIELD_ELEMENT 32L
|
2022-11-25 13:28:03 +00:00
|
|
|
/*
|
2022-12-06 12:58:56 +00:00
|
|
|
* Class: ethereum_ckzg4844_CKZG4844JNI
|
|
|
|
* Method: getFieldElementsPerBlob
|
|
|
|
* Signature: ()I
|
|
|
|
*/
|
|
|
|
JNIEXPORT jint JNICALL Java_ethereum_ckzg4844_CKZG4844JNI_getFieldElementsPerBlob(JNIEnv *, jclass);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: ethereum_ckzg4844_CKZG4844JNI
|
2022-11-25 13:28:03 +00:00
|
|
|
* Method: loadTrustedSetup
|
|
|
|
* Signature: (Ljava/lang/String;)V
|
|
|
|
*/
|
2022-12-16 11:42:53 +00:00
|
|
|
JNIEXPORT void JNICALL Java_ethereum_ckzg4844_CKZG4844JNI_loadTrustedSetup__Ljava_lang_String_2(JNIEnv *, jclass, jstring);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: ethereum_ckzg4844_CKZG4844JNI
|
|
|
|
* Method: loadTrustedSetup
|
|
|
|
* Signature: ([BJ[BJ)V
|
|
|
|
*/
|
|
|
|
JNIEXPORT void JNICALL Java_ethereum_ckzg4844_CKZG4844JNI_loadTrustedSetup___3BJ_3BJ(JNIEnv *, jclass, jbyteArray, jlong, jbyteArray, jlong);
|
2022-11-23 16:32:25 +00:00
|
|
|
|
2022-11-25 13:28:03 +00:00
|
|
|
/*
|
2022-12-06 12:58:56 +00:00
|
|
|
* Class: ethereum_ckzg4844_CKZG4844JNI
|
2022-11-25 13:28:03 +00:00
|
|
|
* Method: freeTrustedSetup
|
|
|
|
* Signature: ()V
|
|
|
|
*/
|
2022-12-06 12:58:56 +00:00
|
|
|
JNIEXPORT void JNICALL Java_ethereum_ckzg4844_CKZG4844JNI_freeTrustedSetup(JNIEnv *, jclass);
|
2022-11-23 16:32:25 +00:00
|
|
|
|
2022-11-25 13:28:03 +00:00
|
|
|
/*
|
2022-12-06 12:58:56 +00:00
|
|
|
* Class: ethereum_ckzg4844_CKZG4844JNI
|
2023-01-27 15:16:41 +00:00
|
|
|
* Method: computeKzgProof
|
|
|
|
* Signature: ([B[B)[B
|
|
|
|
*/
|
|
|
|
JNIEXPORT jbyteArray JNICALL Java_ethereum_ckzg4844_CKZG4844JNI_computeKzgProof(JNIEnv *, jclass, jbyteArray, jbyteArray);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: ethereum_ckzg4844_CKZG4844JNI
|
2022-11-25 13:28:03 +00:00
|
|
|
* Method: computeAggregateKzgProof
|
|
|
|
* Signature: ([BJ)[B
|
|
|
|
*/
|
2022-12-06 12:58:56 +00:00
|
|
|
JNIEXPORT jbyteArray JNICALL Java_ethereum_ckzg4844_CKZG4844JNI_computeAggregateKzgProof(JNIEnv *, jclass, jbyteArray, jlong);
|
2022-11-23 16:32:25 +00:00
|
|
|
|
2022-11-25 13:28:03 +00:00
|
|
|
/*
|
2022-12-06 12:58:56 +00:00
|
|
|
* Class: ethereum_ckzg4844_CKZG4844JNI
|
2022-11-25 13:28:03 +00:00
|
|
|
* Method: verifyAggregateKzgProof
|
|
|
|
* Signature: ([B[BJ[B)Z
|
|
|
|
*/
|
2022-12-06 12:58:56 +00:00
|
|
|
JNIEXPORT jboolean JNICALL Java_ethereum_ckzg4844_CKZG4844JNI_verifyAggregateKzgProof(JNIEnv *, jclass, jbyteArray, jbyteArray, jlong, jbyteArray);
|
2022-11-23 16:32:25 +00:00
|
|
|
|
2022-11-25 13:28:03 +00:00
|
|
|
/*
|
2022-12-06 12:58:56 +00:00
|
|
|
* Class: ethereum_ckzg4844_CKZG4844JNI
|
2022-11-25 13:28:03 +00:00
|
|
|
* Method: blobToKzgCommitment
|
|
|
|
* Signature: ([B)[B
|
|
|
|
*/
|
2022-12-06 12:58:56 +00:00
|
|
|
JNIEXPORT jbyteArray JNICALL Java_ethereum_ckzg4844_CKZG4844JNI_blobToKzgCommitment(JNIEnv *, jclass, jbyteArray);
|
2022-11-23 16:32:25 +00:00
|
|
|
|
2022-11-25 13:28:03 +00:00
|
|
|
/*
|
2022-12-06 12:58:56 +00:00
|
|
|
* Class: ethereum_ckzg4844_CKZG4844JNI
|
2022-11-25 13:28:03 +00:00
|
|
|
* Method: verifyKzgProof
|
|
|
|
* Signature: ([B[B[B[B)Z
|
|
|
|
*/
|
2022-12-06 12:58:56 +00:00
|
|
|
JNIEXPORT jboolean JNICALL Java_ethereum_ckzg4844_CKZG4844JNI_verifyKzgProof(JNIEnv *, jclass, jbyteArray, jbyteArray, jbyteArray, jbyteArray);
|
2022-11-23 16:32:25 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|