Skip to content

Commit

Permalink
Now ots field is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
penpenpng committed Oct 31, 2024
1 parent af6eb51 commit 1187bcf
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface Event<K extends number = number> {
pubkey: string;
content: string;
created_at: number;
/** See also [NIP-03](https://github.com/nostr-protocol/nips/blob/master/03.md). */
/** @deprecated Use kind 1040 (NIP-03) instead. */
ots?: string;
}

Expand All @@ -37,7 +37,7 @@ export interface EventParameters<K extends number = number> {
pubkey?: string;
content: string;
created_at?: number;
/** See also [NIP-03](https://github.com/nostr-protocol/nips/blob/master/03.md). */
/** @deprecated Use kind 1040 (NIP-03) instead. */
ots?: string;
}

Expand Down Expand Up @@ -225,6 +225,16 @@ export namespace Tag {
marker?: EventMarker
];

/**
* OpenTimestamps proof.
*
* See also [NIP-03](https://github.com/nostr-protocol/nips/blob/master/03.md).
*/
export type block = [
blockHeight: string,
blockHash: string,
];

/**
* Associate the tagged Kind0 (Metadata) Event with the specified external identity.
*
Expand Down

0 comments on commit 1187bcf

Please sign in to comment.