AppleSauce
    Preparing search index...

    Function findMatchingPrivateKeyForNutzap

    • Finds the matching private key for the P2PK lock in a nutzap event's proofs

      Parameters

      • nutzap: NostrEvent

        the nutzap event containing P2PK-locked proofs

      • privateKeys: Uint8Array<ArrayBufferLike>[]

        array of private keys to search through

      Returns Uint8Array<ArrayBufferLike> | undefined

      the matching private key, or undefined if none match

      if proofs are not P2PK locked or have inconsistent pubkeys