github.com/jiajun1992/watercarver@v0.0.0-20191031150618-dfc2b17c0c4a/go-ethereum/ctcrypto/shuffle/GoApis.h (about) 1 // 2 // Created by wyongcan on 2019/10/14. 3 // 4 5 #ifndef WATERCARVER_GOAPIS_H 6 #define WATERCARVER_GOAPIS_H 7 #ifdef __cplusplus 8 extern "C" { 9 #endif 10 void shuffle_gen(char *commitments, int m, int n, char **shuffledCommitments, int *shuffledCommitmentsLen, 11 int **permutation, int *permutationLen, char **proof, int *proofLen); 12 void shuffle_gen_with_regulation(char *commitments, int m, int n, char **shuffledCommitments, 13 int *shuffledCommitmentsLen, char **proof, int *proofLen, int *permutation_in, char *R_in); 14 int shuffle_ver(char *commitments, int m, int n, char *shuffledCommitments, int shuffledCommitmentsLen, 15 char *proof, int proofLen); 16 void deleteCharArray(char *ptr); 17 void deleteIntArray(int *ptr); 18 #ifdef __cplusplus 19 } 20 #endif 21 #endif //WATERCARVER_GOAPIS_H