aboutsummaryrefslogtreecommitdiffstats
path: root/ffi/go/bls/bls.go
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2018-12-05 10:59:06 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2018-12-05 10:59:06 +0800
commitf63e122a2cff8d0e20288b897c449a42cdf84897 (patch)
treebed5a15333c3d04fbf23f583a56bbc64c8c9d271 /ffi/go/bls/bls.go
parentafbcbeaaf3b5f9962af382d668ae5bcad337f661 (diff)
downloaddexon-bls-f63e122a2cff8d0e20288b897c449a42cdf84897.tar
dexon-bls-f63e122a2cff8d0e20288b897c449a42cdf84897.tar.gz
dexon-bls-f63e122a2cff8d0e20288b897c449a42cdf84897.tar.bz2
dexon-bls-f63e122a2cff8d0e20288b897c449a42cdf84897.tar.lz
dexon-bls-f63e122a2cff8d0e20288b897c449a42cdf84897.tar.xz
dexon-bls-f63e122a2cff8d0e20288b897c449a42cdf84897.tar.zst
dexon-bls-f63e122a2cff8d0e20288b897c449a42cdf84897.zip
-tags options is necessary fo cgo
Diffstat (limited to 'ffi/go/bls/bls.go')
-rw-r--r--ffi/go/bls/bls.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/ffi/go/bls/bls.go b/ffi/go/bls/bls.go
index a7bbeb3..cb7074c 100644
--- a/ffi/go/bls/bls.go
+++ b/ffi/go/bls/bls.go
@@ -2,9 +2,13 @@ package bls
/*
#cgo CFLAGS:-I../../../include -I../../../../mcl/include/
-#cgo LDFLAGS:-L../../../lib
-#cgo CFLAGS:-DMCLBN_FP_UNIT_SIZE=6
-#cgo LDFLAGS:-lbls384_dy -lcrypto -lgmp -lgmpxx -lstdc++
+#cgo bn256 CFLAGS:-DMCLBN_FP_UNIT_SIZE=4
+#cgo bn256 LDFLAGS:-lbls256_dy
+#cgo bn384 CFLAGS:-DMCLBN_FP_UNIT_SIZE=6
+#cgo bn384 LDFLAGS:-lbls384_dy
+#cgo bn384_256 CFLAGS:-DMCLBN_FP_UNIT_SIZE=6 -DMCLBN_FR_UNIT_SIZE=4
+#cgo bn384_256 LDFLAGS:-lbls384_256_dy
+#cgo LDFLAGS:-L../../../lib -lcrypto -lgmp -lgmpxx -lstdc++
#include <bls/bls.h>
*/
import "C"