Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 495 Bytes

File metadata and controls

27 lines (16 loc) · 495 Bytes

signSchnorr

Method

async function signSchnorr(sigHash: string) : string;

Params

  • sigHashrequired 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

{% embed url="https://codepen.io/OneKeyHQ/pen/poGOPXB" %}