Last updated 11 months ago
async function getPublicKey(): string
returns a public key as hex
const provider = (window.$onekey && window.$onekey.nostr) || window.nostr; const pubkey = async provider.getPublicKey()