diff --git a/rln-js/index.html b/rln-js/index.html index 97a7461..c6048e9 100644 --- a/rln-js/index.html +++ b/rln-js/index.html @@ -63,7 +63,9 @@ const keyDiv = document.getElementById('key'); const commitmentDiv = document.getElementById('commitment'); + generateCredsButton.disabled = true; const rlnInstance = await create(); + generateCredsButton.disabled = false; let membership; generateCredsButton.onclick = () => { diff --git a/rln-reactts/6c569aa52e8fecc76efe.module.wasm b/rln-react-ts/6c569aa52e8fecc76efe.module.wasm similarity index 100% rename from rln-reactts/6c569aa52e8fecc76efe.module.wasm rename to rln-react-ts/6c569aa52e8fecc76efe.module.wasm diff --git a/rln-react-ts/asset-manifest.json b/rln-react-ts/asset-manifest.json new file mode 100644 index 0000000..10e3f64 --- /dev/null +++ b/rln-react-ts/asset-manifest.json @@ -0,0 +1,17 @@ +{ + "files": { + "main.css": "/rln-react-ts/static/css/main.271a57b5.css", + "main.js": "/rln-react-ts/static/js/main.e42c30f1.js", + "static/js/913.9518dccb.chunk.js": "/rln-react-ts/static/js/913.9518dccb.chunk.js", + "module.wasm": "/rln-react-ts/6c569aa52e8fecc76efe.module.wasm", + "static/media/rpc.cjs": "/rln-react-ts/static/media/rpc.93e8f6196bd2c425bf03.cjs", + "index.html": "/rln-react-ts/index.html", + "main.271a57b5.css.map": "/rln-react-ts/static/css/main.271a57b5.css.map", + "main.e42c30f1.js.map": "/rln-react-ts/static/js/main.e42c30f1.js.map", + "913.9518dccb.chunk.js.map": "/rln-react-ts/static/js/913.9518dccb.chunk.js.map" + }, + "entrypoints": [ + "static/css/main.271a57b5.css", + "static/js/main.e42c30f1.js" + ] +} \ No newline at end of file diff --git a/rln-reactts/favicon.ico b/rln-react-ts/favicon.ico similarity index 100% rename from rln-reactts/favicon.ico rename to rln-react-ts/favicon.ico diff --git a/rln-react-ts/index.html b/rln-react-ts/index.html new file mode 100644 index 0000000..1043072 --- /dev/null +++ b/rln-react-ts/index.html @@ -0,0 +1 @@ +
=0;n--){for(var c=t.words[n],l=u-1;l>=0;l--){var f=c>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===n&&0===l)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new I(e)},i(I,A),I.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},I.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},I.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},I.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},I.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},5467:function(e,t,r){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(n++,"%c"===e&&(i=n))})),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(r){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(r){}!e&&"undefined"!==typeof process&&"env"in process&&(e={NODE_ENV:"production",PUBLIC_URL:"/rln-reaccts",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.DEBUG);return e},t.useColors=function(){if("undefined"!==typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=function(){var e=!1;return function(){e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=r(3760)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},3760:function(e,t,r){var n=r(9616).default;e.exports=function(e){function t(e){var r,n,o,a=null;function s(){for(var e=arguments.length,n=new Array(e),i=0;i