import{A as e,k as t}from"./useCurrentUser-CgUH2vq7.js";import{t as n}from"./sha256-BgZ4MAII.js";var{Point:r}=t;function i(t){return r.BASE.multiply(e(t)).toBytes(!0)}function a(t,n){return r.fromBytes(t).multiply(e(n)).toBytes(!0)}function o(e,t){let n=r.fromBytes(e).add(r.fromBytes(t));if(n.is0())throw Error(`Point addition produced the point at infinity`);return n.toBytes(!0)}function s(...e){let t=0;for(let n of e)t+=n.length;let n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function c(e){let t=new Uint8Array(e.length);for(let n=0;n4294967295)throw Error(`ser32 out of range: ${e}`);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!1),t}function d(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r