async function signSchnorr(sigHash: string) : string;
sigHash
— requiredstring
a hash to sign
Signature of arbitrary text signed with the private key of the active nostr account
const provider = (window.$onekey && window.$onekey.nostr) || window.nostr;
const signature = async provider.signSchnorr("010203")
{% embed url="https://codepen.io/OneKeyHQ/pen/poGOPXB" %}