AppleSauce
    Preparing search index...

    Function encodeDecodeResult

    • Encodes the result of nip19.decode

      Parameters

      • result:
            | { 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
          | ""
          | `nprofile1${string}`
          | `nevent1${string}`
          | `naddr1${string}`
          | `nsec1${string}`
          | `npub1${string}`
          | `note1${string}`