jacany / nosbin

Documentation comments not found for functions and classes JS-D1001
Documentation
Minor
7 occurrences in this check
Documentation comment not found for method definition getEventById
181		return event.id;
182	}
183
184	public getEventById(id: string, maxDelayms = 100): Promise<Event> {185		return this.relays.getEventById(id, this.getCurrentRelaysInArray(), maxDelayms);
186	}
187
Documentation comment not found for method definition postNewEvent
158	//
159	// Event Management
160	//
161	public async postNewEvent(ev: Event, returnNip19 = false): Promise<string | undefined> {162		let event: Event = {
163			...ev,
164			pubkey: this._pubkey,
Documentation comment not found for method definition getCurrentRelaysInArray
151		return this.pubkey;
152	}
153
154	public getCurrentRelaysInArray(): string[] {155		return this.relays.getRelayStatuses().map(([url, _]) => url);
156	}
157
Documentation comment not found for method definition getPubkeyFromExtension
145		return [this.pubkey, this.privkey];
146	}
147
148	public async getPubkeyFromExtension(): Promise<string | null> {149		if (browser && !window.nostr) return null;
150		this.pubkey = await window.nostr.getPublicKey();
151		return this.pubkey;
Documentation comment not found for method definition generateKeys
138		return input;
139	}
140
141	public generateKeys(): string[] {142		const genPriv = generatePrivateKey();
143		this.privkey = genPriv;
144		this.pubkey = getPublicKey(genPriv);
Documentation comment not found for method definition nip05
 74		});
 75	}
 76
 77	public async nip05(nip05: string, pubkey: string): Promise<boolean> { 78		const splitted = nip05.split("@");
 79		const req = await fetch(
 80			`https://${splitted[1]}/.well-known/nostr.json?name=${splitted[0]}`
Documentation comment not found for class Nostr
 28import Logger from "$lib/Logger";
 29import { RelayPool } from "nostr-relaypool/index";
 30
 31export default class Nostr { 32	public relays: RelayPool;
 33	public _pubkey: string;
 34	private _privkey: string;