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
|
2023-03-10 09:40:23 +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
|
2023-03-10 09:40:23 +00:00
|
|
|
/*
|
|
|
|
* Class: ethereum_ckzg4844_CKZG4844JNI
|
|
|
|
* Method: getFieldElementsPerBlob
|
|
|
|
* Signature: ()I
|
|
|
|
*/
|
|
|
|
JNIEXPORT jint JNICALL Java_ethereum_ckzg4844_CKZG4844JNI_getFieldElementsPerBlob
|
|
|
|
(JNIEnv *, jclass);
|
2022-12-06 12:58:56 +00:00
|
|
|
|
2023-03-10 09:40:23 +00:00
|
|
|
/*
|
|
|
|
* Class: ethereum_ckzg4844_CKZG4844JNI
|
|
|
|
* Method: loadTrustedSetup
|
|
|
|
* Signature: (Ljava/lang/String;)V
|
|
|
|
*/
|
|
|
|
JNIEXPORT void JNICALL Java_ethereum_ckzg4844_CKZG4844JNI_loadTrustedSetup__Ljava_lang_String_2
|
|
|
|
(JNIEnv *, jclass, jstring);
|
2022-12-16 11:42:53 +00:00
|
|
|
|
2023-03-10 09:40:23 +00:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
2023-03-10 09:40:23 +00:00
|
|
|
/*
|
|
|
|
* Class: ethereum_ckzg4844_CKZG4844JNI
|
|
|
|
* Method: freeTrustedSetup
|
|
|
|
* Signature: ()V
|
|
|
|
*/
|
|
|
|
JNIEXPORT void JNICALL Java_ethereum_ckzg4844_CKZG4844JNI_freeTrustedSetup
|
|
|
|
(JNIEnv *, jclass);
|
2022-11-23 16:32:25 +00:00
|
|
|
|
2023-03-10 09:40:23 +00:00
|
|
|
/*
|
|
|
|
* Class: ethereum_ckzg4844_CKZG4844JNI
|
|
|
|
* Method: blobToKzgCommitment
|
|
|
|
* Signature: ([B)[B
|
|
|
|
*/
|
|
|
|
JNIEXPORT jbyteArray JNICALL Java_ethereum_ckzg4844_CKZG4844JNI_blobToKzgCommitment
|
|
|
|
(JNIEnv *, jclass, jbyteArray);
|
2023-01-27 15:16:41 +00:00
|
|
|
|
2023-03-10 09:40:23 +00:00
|
|
|
/*
|
|
|
|
* Class: ethereum_ckzg4844_CKZG4844JNI
|
|
|
|
* Method: computeKzgProof
|
2023-03-21 13:16:53 +00:00
|
|
|
* Signature: ([B[B)Lethereum/ckzg4844/ProofAndY;
|
2023-03-10 09:40:23 +00:00
|
|
|
*/
|
|
|
|
JNIEXPORT jobject JNICALL Java_ethereum_ckzg4844_CKZG4844JNI_computeKzgProof
|
|
|
|
(JNIEnv *, jclass, jbyteArray, jbyteArray);
|
2022-11-23 16:32:25 +00:00
|
|
|
|
2023-03-10 09:40:23 +00:00
|
|
|
/*
|
|
|
|
* Class: ethereum_ckzg4844_CKZG4844JNI
|
|
|
|
* Method: computeBlobKzgProof
|
|
|
|
* Signature: ([B[B)[B
|
|
|
|
*/
|
|
|
|
JNIEXPORT jbyteArray JNICALL Java_ethereum_ckzg4844_CKZG4844JNI_computeBlobKzgProof
|
|
|
|
(JNIEnv *, jclass, jbyteArray, jbyteArray);
|
2022-11-23 16:32:25 +00:00
|
|
|
|
2023-03-10 09:40:23 +00:00
|
|
|
/*
|
|
|
|
* Class: ethereum_ckzg4844_CKZG4844JNI
|
|
|
|
* Method: verifyKzgProof
|
|
|
|
* Signature: ([B[B[B[B)Z
|
|
|
|
*/
|
|
|
|
JNIEXPORT jboolean JNICALL Java_ethereum_ckzg4844_CKZG4844JNI_verifyKzgProof
|
|
|
|
(JNIEnv *, jclass, jbyteArray, jbyteArray, jbyteArray, jbyteArray);
|
2022-11-23 16:32:25 +00:00
|
|
|
|
2023-03-10 09:40:23 +00:00
|
|
|
/*
|
|
|
|
* Class: ethereum_ckzg4844_CKZG4844JNI
|
|
|
|
* Method: verifyBlobKzgProof
|
|
|
|
* Signature: ([B[B[B)Z
|
|
|
|
*/
|
|
|
|
JNIEXPORT jboolean JNICALL Java_ethereum_ckzg4844_CKZG4844JNI_verifyBlobKzgProof
|
|
|
|
(JNIEnv *, jclass, jbyteArray, jbyteArray, jbyteArray);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: ethereum_ckzg4844_CKZG4844JNI
|
|
|
|
* Method: verifyBlobKzgProofBatch
|
|
|
|
* Signature: ([B[B[BJ)Z
|
|
|
|
*/
|
|
|
|
JNIEXPORT jboolean JNICALL Java_ethereum_ckzg4844_CKZG4844JNI_verifyBlobKzgProofBatch
|
|
|
|
(JNIEnv *, jclass, jbyteArray, jbyteArray, jbyteArray, jlong);
|
2022-11-23 16:32:25 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|