diff --git a/src/bn128.js b/src/bn128.js index e286818..8176b44 100644 --- a/src/bn128.js +++ b/src/bn128.js @@ -519,6 +519,7 @@ class Bn128 { this.instance.exports.f1m_fromMontgomery(p, p); const r = this.bin2int(this.i32.slice(p>>2, (p+SIZEF1)>>2)).toString(); this.instance.exports.f1m_toMontgomery(p, p); + return r; } getF2(p) {