diff --git a/docs/demo/she-demo.js b/docs/demo/she-demo.js index 1cdf78e..4685300 100644 --- a/docs/demo/she-demo.js +++ b/docs/demo/she-demo.js @@ -110,7 +110,7 @@ function onClickTestSHEclass() { setText('pub2', Uint8ArrayToHexString(pub.serialize())) let m = 15 setText('m2', m) - let c = pub.enc(m) + let c = pub.encG1(m) setText('c2', Uint8ArrayToHexString(c.serialize())) if (0) { let s1 = sheSecretKey_malloc() diff --git a/docs/demo/she.js b/docs/demo/she.js index 4a57b29..f9707e6 100644 --- a/docs/demo/she.js +++ b/docs/demo/she.js @@ -285,7 +285,7 @@ mod.Runtime.stackRestore(stack) return pub } - she.PublicKey.prototype.enc = function(m) { + she.PublicKey.prototype.encG1 = function(m) { return she.callEnc(sheEnc32G1, she.CipherTextG1, this.a_, m) } she.SecretKey.prototype.dec = function(c) {