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