PageSourceSearch

https://lodestar-light-client-demo.netlify.app/static/js/674.b5de3e23.chunk.js

js lodestar-light-client-demo.netlify.app collected 2026-10-03 11:00:53 UTC 6,715 bytes, 1 lines download raw bytes

1(globalThis.webpackChunklight_client_demo=globalThis.webpackChunklight_client_demo||[]).push([[674],{99715:()=>{},55622:(e,t,r)=>{"use strict";r.d(t,{Gf:()=>u,KS:()=>s,NB:()=>o,p2:()=>n,vv:()=>i});const s=32,n=48,i=96,u=96,o=192},5421:(e,t,r)=>{"use strict";r.d(t,{DN:()=>u,T9:()=>s,ad:()=>c,bc:()=>n,hX:()=>a,ql:()=>i,tN:()=>o});class s extends Error{constructor(e){super(`NOT_INITIALIZED: ${e}`)}}class n extends Error{constructor(){super("ZERO_SECRET_KEY")}}class i extends Error{constructor(){super("ZERO_PUBLIC_KEY")}}class u extends Error{constructor(){super("ZERO_SIGNATURE")}}class o extends Error{constructor(){super("EMPTY_AGGREGATE_ARRAY")}}class a extends Error{constructor(){super("INVALID_ORDER")}}class c extends Error{constructor(e,t){super(`INVALID_LENGTH: ${e} - ${t} bytes`)}}},83600:(e,t,r)=>{"use strict";r.d(t,{f:()=>i});var s=r(49074),n=r(5421);function i(e){let{SecretKey:t,PublicKey:r,Signature:i}=e;return{sign:function(e,r){return(0,s.CN)(e,"secretKey"),(0,s.CN)(r,"message"),t.fromBytes(e).sign(r).toBytes()},aggregateSignatures:function(e){return i.aggregate(e.map((e=>i.fromBytes(e)))).toBytes()},aggregatePublicKeys:function(e){return r.aggregate(e.map((e=>r.fromBytes(e)))).toBytes()},verify:function(e,t,u){(0,s.CN)(e,"publicKey"),(0,s.CN)(t,"message"),(0,s.CN)(u,"signature");try{return i.fromBytes(u).verify(r.fromBytes(e),t)}catch(o){if(o instanceof n.T9)throw o;return!1}},verifyAggregate:function(e,t,u){(0,s.CN)(e,"publicKey"),(0,s.CN)(t,"message"),(0,s.CN)(u,"signature");try{return i.fromBytes(u).verifyAggregate(e.map((e=>r.fromBytes(e))),t)}catch(o){if(o instanceof n.T9)throw o;return!1}},verifyMultiple:function(e,t,u){if((0,s.CN)(e,"publicKey"),(0,s.CN)(t,"message"),(0,s.CN)(u,"signature"),0===e.length||e.length!=t.length)return!1;try{return i.fromBytes(u).verifyMultiple(e.map((e=>r.fromBytes(e))),t.map((e=>e)))}catch(o){if(o instanceof n.T9)throw o;return!1}},verifyMultipleSignatures:function(e){if(!e)throw Error("sets is null or undefined");try{return i.verifyMultipleSignatures(e.map((e=>({publicKey:r.fromBytes(e.publicKey),message:e.message,signature:i.fromBytes(e.signature)}))))}catch(t){if(t instanceof n.T9)throw t;return!1}},secretKeyToPublicKey:function(e){return(0,s.CN)(e,"secretKey"),t.fromBytes(e).toPublicKey().toBytes()}}}},32120:(e,t,r)=>{"use strict";function s(e){if(e.startsWith("0x")&&(e=e.slice(2)),1&e.length)throw Error("hexToBytes:length must be even "+e.length);const t=e.length/2,r=new Uint8Array(t);for(let s=0;s<t;s++)r[s]=parseInt(e.slice(2*s,2*s+2),16);return r}function n(e){let t="";const r=e.length;for(let s=0;s<r;s++)t+=("0"+e[s].toString(16)).slice(-2);return"0x"+t}r.d(t,{c:()=>n,n:()=>s})},49074:(e,t,r)=>{"use strict";function s(e,t){for(const r of Array.isArray(e)?e:[e])if(null==r)throw Error(`${t||"bytes"} is null or undefined`)}function n(e){return e.every((e=>0===e))}function i(e){const t=e.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(t);let s=0;for(const n of e)r.set(n,s),s+=n.length;return r}r.d(t,{CN:()=>s,Hv:()=>i,gN:()=>n})},50917:(e,t,r)=>{"use strict";r.d(t,{S1:()=>o,fw:()=>c,ob:()=>a});var s=r(50129),n=r(5421);let i=null,u=null;async function o(){return u||(u=async function(){if(!i){if(await s.init(s.BLS12_381),"object"===typeof window){const e=window.crypto||window.msCrypto;s.getRandomValues=t=>e.getRandomValues(t)}i=s}}()),u}function a(){i=null,u=null}function c(){if(!i)throw new n.T9("herumi");return i}},84578:(e,t,r)=>{"use strict";r.a(e,(async(e,s)=>{try{r.r(t),r.d(t,{PUBLIC_KEY_LENGTH_COMPRESSED:()=>c.p2,PUBLIC_KEY_LENGTH_UNCOMPRESSED:()=>c.vv,PublicKey:()=>i.n,SECRET_KEY_LENGTH:()=>c.KS,SIGNATURE_LENGTH_COMPRESSED:()=>c.Gf,SIGNATURE_LENGTH_UNCOMPRESSED:()=>c.NB,SecretKey:()=>n.u,Signature:()=>u.P,bls:()=>e,default:()=>l,destroy:()=>o.ob,init:()=>o.S1});var n=r(58753),i=r(40401),u=r(80192),o=r(50917),a=r(83600),c=r(55622);await(0,o.S1)();const e={implementation:"herumi",SecretKey:n.u,PublicKey:i.n,Signature:u.P,...(0,a.f)({SecretKey:n.u,PublicKey:i.n,Signature:u.P})},l=e;s()}catch(l){s(l)}}),1)},40401:(e,t,r)=>{"use strict";r.d(t,{n:()=>c});var s=r(50917),n=r(49074),i=r(32120),u=r(62034),o=r(5421),a=r(55622);class c{constructor(e){if(e.isZero())throw new o.ql;this.value=e}static fromBytes(e){const t=new((0,s.fw)().PublicKey);if(!(0,n.gN)(e))if(e.length===a.p2)t.deserialize(e);else{if(e.length!==a.vv)throw new o.ad("PublicKey",e.length);t.deserializeUncompressed(e)}return new c(t)}static fromHex(e){return this.fromBytes((0,i.n)(e))}static aggregate(e){if(0===e.length)throw new o.tN;const t=new c(e[0].value.clone());for(const r of e.slice(1))t.value.add(r.value);return t}toBytes(e){return e===u.e.uncompressed?this.value.serializeUncompressed():this.value.serialize()}toHex(e){return(0,i.c)(this.toBytes(e))}}},58753:(e,t,r)=>{"use strict";r.d(t,{u:()=>l});var s=r(22233),n=r(55622),i=r(50917),u=r(40401),o=r(80192),a=r(32120),c=r(5421);class l{constructor(e){if(e.isZero())throw new c.bc;this.value=e}static fromBytes(e){if(e.length!==n.KS)throw new c.ad("SecretKey",n.KS);const t=new((0,i.fw)().SecretKey);return t.deserialize(e),new l(t)}static fromHex(e){return this.fromBytes((0,a.n)(e))}static fromKeygen(e){const t=(0,s.p4)(e);return this.fromBytes(t)}sign(e){return new o.P(this.value.sign(e))}toPublicKey(){return new u.n(this.value.getPublicKey())}toBytes(){return this.value.serialize()}toHex(){return(0,a.c)(this.toBytes())}}},80192:(e,t,r)=>{"use strict";r.d(t,{P:()=>c});var s=r(50917),n=r(49074),i=r(32120),u=r(62034),o=r(5421),a=r(55622);class c{constructor(e){if(!e.isValidOrder())throw new o.hX;this.value=e}static fromBytes(e,t){const r=new((0,s.fw)().Signature);if(!(0,n.gN)(e)){if(e.length===a.Gf)r.deserialize(e);else{if(e.length!==a.NB)throw new o.ad("Signature",e.length);r.deserializeUncompressed(e)}r.deserialize(e)}return new c(r)}static fromHex(e){return this.fromBytes((0,i.n)(e))}static aggregate(e){if(0===e.length)throw new o.tN;const t=new((0,s.fw)().Signature);return t.aggregate(e.map((e=>e.value))),new c(t)}static verifyMultipleSignatures(e){return(0,s.fw)().multiVerify(e.map((e=>e.publicKey.value)),e.map((e=>e.signature.value)),e.map((e=>e.message)))}verify(e,t){return e.value.verify(this.value,t)}verifyAggregate(e,t){return this.value.fastAggregateVerify(e.map((e=>e.value)),t)}verifyMultiple(e,t){return this.value.aggregateVerifyNoCheck(e.map((e=>e.value)),(0,n.Hv)(t))}toBytes(e){return e===u.e.uncompressed?this.value.serializeUncompressed():this.value.serialize()}toHex(e){return(0,i.c)(this.toBytes(e))}}},62034:(e,t,r)=>{"use strict";var s,n;r.d(t,{e:()=>s}),function(e){e.compressed="compressed",e.uncompressed="uncompressed"}(s||(s={})),function(e){e[e.affine=0]="affine",e[e.jacobian=1]="jacobian"}(n||(n={}))}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.