aboutsummaryrefslogtreecommitdiffstats
path: root/docs/demo/bls.js
diff options
context:
space:
mode:
Diffstat (limited to 'docs/demo/bls.js')
-rw-r--r--docs/demo/bls.js4
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)