AppleSauce
    Preparing search index...

    Function getPubkeyFromDecodeResult

    • Extra a pubkey from the result of nip19.decode

      Parameters

      • Optionalresult:
            | { data: EventPointer; type: "nevent" }
            | { data: ProfilePointer; type: "nprofile" }
            | { data: AddressPointer; type: "naddr" }
            | { data: string; type: "npub" }
            | { data: Uint8Array; type: "nsec" }
            | { data: string; type: "note" }

      Returns undefined | string