Skip to content

Commit

Permalink
The AccountDataSource will already authenticate for the ZapPayment Re…
Browse files Browse the repository at this point in the history
…lay.
  • Loading branch information
vitorpamplona committed Jun 28, 2024
1 parent 1fafb6a commit 4e9e123
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,10 @@
*/
package com.vitorpamplona.amethyst.service

import com.vitorpamplona.ammolite.relays.Client
import com.vitorpamplona.ammolite.relays.FeedType
import com.vitorpamplona.ammolite.relays.Filter
import com.vitorpamplona.ammolite.relays.Relay
import com.vitorpamplona.ammolite.relays.TypedFilter
import com.vitorpamplona.quartz.events.LnZapPaymentResponseEvent
import com.vitorpamplona.quartz.events.RelayAuthEvent
import com.vitorpamplona.quartz.signers.NostrSigner

class NostrLnZapPaymentResponseDataSource(
Expand Down Expand Up @@ -62,18 +59,4 @@ class NostrLnZapPaymentResponseDataSource(

channel.typedFilters = listOfNotNull(wc).ifEmpty { null }
}

override fun auth(
relay: Relay,
challenge: String,
) {
super.auth(relay, challenge)

RelayAuthEvent.create(relay.url, challenge, authSigner) {
Client.send(
it,
relay.url,
)
}
}
}

0 comments on commit 4e9e123

Please sign in to comment.