Skip to Content
dApps
On this page

signSchnorr

Method

declare function signSchnorr(sigHash: string): Promise<string>;;

Params

  • sigHash — required string a hash to sign

Response

A Schnorr signature for the supplied hash, using the active Nostr account. This is a OneKey extension, not a NIP-07 method.

Example

const provider = (window.$onekey && window.$onekey.nostr) || window.nostr; const signature = await provider.signSchnorr("<SIGNATURE_HASH_HEX>")

Demo

Open example 

Last updated on