Makes NIP-17 the default messaging mode

Migrates code from old NIP-24 to NIP-17
This commit is contained in:
Vitor Pamplona
2024-05-14 11:34:36 -04:00
parent 561b19c447
commit 1f45a63081
36 changed files with 143 additions and 160 deletions
@@ -23,7 +23,7 @@ package com.vitorpamplona.quartz.events
import com.vitorpamplona.quartz.encoders.HexKey
import com.vitorpamplona.quartz.signers.NostrSigner
class NIP24Factory {
class NIP17Factory {
data class Result(val msg: Event, val wraps: List<GiftWrapEvent>)
private fun recursiveGiftWrapCreation(
@@ -65,7 +65,7 @@ class NIP24Factory {
recursiveGiftWrapCreation(event, to.toList(), signer, wraps, onReady)
}
fun createMsgNIP24(
fun createMsgNIP17(
msg: String,
to: List<HexKey>,
signer: NostrSigner,