diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2017-09-18 09:19:00 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2017-09-18 09:19:00 +0800 |
commit | 4ceb7a52b6e8884e75121440776e93331453f818 (patch) | |
tree | 3577a58c1334e2c4719cef9f3ff6246f4da26e93 /docs/demo/bls.js | |
parent | 60c0ab40c388a4b6bc96ab90690c26ac3105bc60 (diff) | |
download | dexon-bls-4ceb7a52b6e8884e75121440776e93331453f818.tar dexon-bls-4ceb7a52b6e8884e75121440776e93331453f818.tar.gz dexon-bls-4ceb7a52b6e8884e75121440776e93331453f818.tar.bz2 dexon-bls-4ceb7a52b6e8884e75121440776e93331453f818.tar.lz dexon-bls-4ceb7a52b6e8884e75121440776e93331453f818.tar.xz dexon-bls-4ceb7a52b6e8884e75121440776e93331453f818.tar.zst dexon-bls-4ceb7a52b6e8884e75121440776e93331453f818.zip |
add default parameter of blsInit
Diffstat (limited to 'docs/demo/bls.js')
-rw-r--r-- | docs/demo/bls.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/demo/bls.js b/docs/demo/bls.js index 9176c75..4894dc5 100644 --- a/docs/demo/bls.js +++ b/docs/demo/bls.js @@ -193,6 +193,10 @@ function define_bls_extra_functions(mod) { blsPublicKey_malloc = mclBnG2_malloc blsSignature_malloc = mclBnG1_malloc + blsInit = function(curveType) { + return _blsInit(curveType, MCLBN_FP_UNIT_SIZE) + } + blsGetCurveOrder = wrap_outputString(_blsGetCurveOrder) blsGetFieldOrder = wrap_outputString(_blsGetFieldOrder) |