On this page
signSchnorr
Method
declare function signSchnorr(sigHash: string): Promise<string>;;Params
sigHash— requiredstringa 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
Last updated on