For the complete documentation index, see llms.txt. This page is also available as Markdown.

hashAndSignSchnorr

Method

async function hashAndSignSchnorr(message: string) : string;

Response

Signs the provided plaintext message using the active Nostr account's private key. Returns a hex-encoded Schnorr signature.

Code Example

const signature = await window.nostr.hashAndSignSchnorr("your message here");

Last updated

Was this helpful?