aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSonic <sonic@dexon.org>2019-04-11 14:42:07 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-11 14:42:07 +0800
commit269fed574986331e07bf931b2c9b1a495c40f8ac (patch)
tree1cb1d5a80cc75befece7e3fd01ee29138749387d
parent1d64520274d4e33b3038550083b78c5ebe1ea45d (diff)
downloaddexon-consensus-269fed574986331e07bf931b2c9b1a495c40f8ac.tar
dexon-consensus-269fed574986331e07bf931b2c9b1a495c40f8ac.tar.gz
dexon-consensus-269fed574986331e07bf931b2c9b1a495c40f8ac.tar.bz2
dexon-consensus-269fed574986331e07bf931b2c9b1a495c40f8ac.tar.lz
dexon-consensus-269fed574986331e07bf931b2c9b1a495c40f8ac.tar.xz
dexon-consensus-269fed574986331e07bf931b2c9b1a495c40f8ac.tar.zst
dexon-consensus-269fed574986331e07bf931b2c9b1a495c40f8ac.zip
dkg: first part of change to BLS12_381 (#561)
* bin: polish install_dkg_dep script * dkg: change to use BLS12_381
-rwxr-xr-xbin/install_dkg_dep.sh4
-rw-r--r--core/crypto/dkg/constant.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/bin/install_dkg_dep.sh b/bin/install_dkg_dep.sh
index b426711..9f6a393 100755
--- a/bin/install_dkg_dep.sh
+++ b/bin/install_dkg_dep.sh
@@ -7,8 +7,8 @@ fi
if [ ! -d .dep/dkg ]; then
mkdir -p .dep/dkg
cd .dep/dkg
- git clone --depth 1 --single-branch -b dev git://github.com/dexon-foundation/bls.git &
- git clone --depth 1 git://github.com/dexon-foundation/mcl.git &
+ git clone --depth 1 -b master git://github.com/dexon-foundation/bls.git &
+ git clone --depth 1 -b master git://github.com/dexon-foundation/mcl.git &
wait
cd bls
make test_go -j
diff --git a/core/crypto/dkg/constant.go b/core/crypto/dkg/constant.go
index 3e7ef45..37d873d 100644
--- a/core/crypto/dkg/constant.go
+++ b/core/crypto/dkg/constant.go
@@ -22,5 +22,5 @@ import (
)
const (
- curve = bls.CurveFp382_2
+ curve = bls.BLS12_381
)