UNPKG

@fleek-platform/agents-ui

Version:

The Fleek Platform Agents UI provides a simple interface for deploying, monitoring, and configuring your agents––making management straightforward

3 lines (2 loc) 926 B
import{c as n,F as s,s as i,u as r,b as o}from"./index-CeRW0q-S.js";/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const t=s(BigInt("0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff")),g=t.create(BigInt("-3")),d=BigInt("0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b"),c=n({a:g,b:d,Fp:t,n:BigInt("0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551"),Gx:BigInt("0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296"),Gy:BigInt("0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"),h:BigInt(1),lowS:!1},i),u=async f=>{const a=c.getPublicKey(f.privateKey,!0),e=r(a);if(e!=f.publicKey)throw new Error(`Bad API key. Expected to get public key ${f.publicKey}, got ${e}`);const b=o().update(f.content).digest();return c.sign(b,f.privateKey).toDERHex()};export{u as signWithApiKey}; //# sourceMappingURL=purejs-jLzh7VLa.js.map