c-kzg-4844/bindings/java/c_kzg_4844_jni.h

100 lines
3.0 KiB
C
Raw Normal View History

/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class ethereum_ckzg4844_CKZG4844JNI */
#ifndef _Included_ethereum_ckzg4844_CKZG4844JNI
#define _Included_ethereum_ckzg4844_CKZG4844JNI
#ifdef __cplusplus
2023-03-10 09:40:23 +00:00
extern "C" {
#endif
#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);
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);
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);
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);
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-03-10 09:40:23 +00:00
/*
* Class: ethereum_ckzg4844_CKZG4844JNI
* Method: computeKzgProof
* 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);
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);
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);
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);
#ifdef __cplusplus
}
#endif
#endif