ndk icon indicating copy to clipboard operation
ndk copied to clipboard

NIP-07 global Window interface, signEvent returns string instead of event?

Open neilck opened this issue 1 year ago • 0 comments

In signers/nip07/index.ts

declare global {
    interface Window {
        nostr?: {
            ...
            signEvent(event: NostrEvent): Promise<{ sig: string }>;
    ...

According to NIP-07 I think it should return an event instead of a string? signEvent(event: NostrEvent): Promise<{ sig: NostrEvent }>;

neilck avatar Sep 08 '23 23:09 neilck