MCPcopy Index your code
hub / github.com/atomicdata-dev/atomic-data-browser / constructor

Method constructor

lib/src/agent.ts:14–20  ·  view source on GitHub ↗
(privateKey: string, subject?: string)

Source from the content-addressed store, hash-verified

12 subject?: string;
13
14 constructor(privateKey: string, subject?: string) {
15 if (subject) {
16 tryValidURL(subject);
17 }
18 this.subject = subject;
19 this.privateKey = privateKey;
20 }
21
22 /** Returns existing public key or generates one using the private key */
23 async getPublicKey(): Promise<string> {

Callers

nothing calls this directly

Calls 1

tryValidURLFunction · 0.90

Tested by

no test coverage detected