signSchnorr

Method

async function signSchnorr(sigHash: string) : string;

Params

  • sigHash — required string a hash to sign

Response

Signature of arbitrary text signed with the private key of the active nostr account

Example

const provider = (window.$onekey && window.$onekey.nostr) || window.nostr;

const signature = async provider.signSchnorr("010203")

Demo

Last updated