Skip to Content
dApp 接入
本页目录

signSchnorr

方法

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

参数

  • sigHash — 必填 string 要签名的哈希

响应

使用当前 Nostr 账户,对提供的哈希生成 Schnorr 签名。这是 OneKey 扩展方法,不属于 NIP-07。

示例

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

演示

打开示例 

最后更新于