[cgo] -tags option is always necessary

pull/3/head
MITSUNARI Shigeo 6 years ago
parent 8845290fd9
commit 6b518d75dc
  1. 1
      ffi/go/bls/bls.go
  2. 3
      readme.md

@ -7,7 +7,6 @@ package bls
#cgo bn384 LDFLAGS:-lbls384 #cgo bn384 LDFLAGS:-lbls384
#cgo bn384_256 CFLAGS:-DMCLBN_FP_UNIT_SIZE=6 -DMCLBN_FR_UNIT_SIZE=4 #cgo bn384_256 CFLAGS:-DMCLBN_FP_UNIT_SIZE=6 -DMCLBN_FR_UNIT_SIZE=4
#cgo bn384_256 LDFLAGS:-lbls384_256 #cgo bn384_256 LDFLAGS:-lbls384_256
#cgo LDFLAGS:-lbls384
#cgo LDFLAGS:-lcrypto -lgmp -lgmpxx -lstdc++ #cgo LDFLAGS:-lcrypto -lgmp -lgmpxx -lstdc++
#include "config.h" #include "config.h"
typedef unsigned int (*ReadRandFunc)(void *, void *, unsigned int); typedef unsigned int (*ReadRandFunc)(void *, void *, unsigned int);

@ -16,12 +16,13 @@ git clone git://github.com/herumi/cybozulib_ext ; for only Windows
``` ```
# News # News
* -tags option for Go bindings is always necessary
* support Android * support Android
* (Break backward compatibility) The suffix `_dy` of library name is removed and bls\*.a requires libmcl.so set LD_LIBRARY_PATH to the directory. * (Break backward compatibility) The suffix `_dy` of library name is removed and bls\*.a requires libmcl.so set LD_LIBRARY_PATH to the directory.
* -tags option for Go bindings * -tags option for Go bindings
* -tags bn256 * -tags bn256
* -tags bn384\_256 * -tags bn384\_256
* -tags bn384 ; default mode * -tags bn384
* Support swap of G1 and G2 * Support swap of G1 and G2
* `make BLS_SWAP_G=1` then G1 is assigned to PublicKey and G2 is assigned to Signature. * `make BLS_SWAP_G=1` then G1 is assigned to PublicKey and G2 is assigned to Signature.
* golang binding does not support this feature yet. * golang binding does not support this feature yet.

Loading…
Cancel
Save