github.com/onflow/flow-go/crypto@v0.24.8/dkg_include.h (about) 1 // +build relic 2 3 #ifndef _REL_DKG_INCLUDE_H 4 #define _REL_DKG_INCLUDE_H 5 6 #include "bls12381_utils.h" 7 8 // the highest index of a DKG participant 9 #define MAX_IND 255 10 #define MAX_IND_BITS 8 11 12 void Zr_polynomialImage_export(byte* out, ep2_t y, const bn_st* a, const int a_size, const byte x); 13 void Zr_polynomialImage(bn_t out, ep2_t y, const bn_st* a, const int a_size, const byte x); 14 void G2_polynomialImages(ep2_st* y, const int len_y, const ep2_st* A, const int len_A); 15 void ep2_vector_write_bin(byte* out, const ep2_st* A, const int len); 16 int ep2_vector_read_bin(ep2_st* A, const byte* src, const int len); 17 int verifyshare(const bn_t x, const ep2_t y); 18 19 #endif