mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
event fields (#37)
This commit is contained in:
committed by
GitHub
parent
4fe2a9c91a
commit
46a0a342db
4
index.d.ts
vendored
4
index.d.ts
vendored
@@ -16,6 +16,8 @@ declare enum EventKind {
|
||||
|
||||
// event.js
|
||||
declare type Event = {
|
||||
signature?:string,
|
||||
id?:string
|
||||
kind: EventKind,
|
||||
pubkey?: string,
|
||||
content: string,
|
||||
@@ -28,7 +30,7 @@ declare function serializeEvent(event: Event): string;
|
||||
declare function getEventHash(event: Event): string;
|
||||
declare function validateEvent(event: Event): boolean;
|
||||
declare function validateSignature(event: Event): boolean;
|
||||
declare function signEvent(event: Event, key: PrivKey): Promise<[Uint8Array, number]>;
|
||||
declare function signEvent(event: Event, key: PrivKey): Promise<string>;
|
||||
|
||||
// filter.js
|
||||
declare type Filter = {
|
||||
|
||||
Reference in New Issue
Block a user