Skip to Content
dApps
Sur cette page

signSchnorr

Méthode

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

Paramètres

  • sigHash — obligatoire string un hash à signer

Réponse

Une signature Schnorr du hash fourni, avec le compte Nostr actif. Il s’agit d’une extension OneKey, pas d’une méthode NIP-07.

Exemple

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

Démonstration

Ouvrir l’exemple 

Dernière mise à jour le