Last updated 1 year ago
Was this helpful?
async function getPublicKey(): string
returns a public key as hex
const provider = (window.$onekey && window.$onekey.nostr) || window.nostr; const pubkey = async provider.getPublicKey()