From 84dc25877ac5dcdf0ccb92a27348f438ccc1d758 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Sat, 15 Sep 2018 14:43:26 +0900 Subject: [PATCH] add return value for mclBn_init --- include/mcl/bn.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/mcl/bn.h b/include/mcl/bn.h index 4c514db..fe32da6 100644 --- a/include/mcl/bn.h +++ b/include/mcl/bn.h @@ -97,6 +97,7 @@ enum { init library @param curve [in] type of bn curve @param maxUnitSize [in] MCLBN_FP_UNIT_SIZE + return 0 if success else -1 curve = BN254/BN_SNARK1 is allowed if maxUnitSize = 4 curve = BN381_1/BN381_2/BLS12_381 are allowed if maxUnitSize = 6 This parameter is used to detect a library compiled with different MCLBN_FP_UNIT_SIZE for safety.