Nostr Coinjoin Discovery

This commit is contained in:
Andrew Camilleri 2023-03-22 11:02:54 +01:00 committed by GitHub
parent 2394e5cc63
commit 98c0893e10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

22
15750.md Normal file
View File

@ -0,0 +1,22 @@
NIP-15750
========
Nostr Coinjoin Discovery
---------------------------------------
`draft` `author:kukks`
## Introduction
The BTCPay Server Coinjoin plugin offers a coinjoin endpoint discovery feature over Nostr for a coordinator runner and a coinjoin client to eaasily discover each other.
## Specification
This NIP introduces a NIP16 replaceable kind `15750`, with the following tags:
* `type`: Signals what kind of coinjoin protocol is being provided. In the case of the BTCPay Server coinjoin plugin, this is `wabisabi`. Other possible options could be `whirlpool`, `bip78`, `joinmarket`, etc.
* `network`: Signals the bitcoin network the coinjoin protocol is operating on. Always lowercase, can be `mainnet`,`testnet`, `signet`, `regtest`.
* `endpoint`: A URI of where a user may connect to to interact with the coinjoin.
The content of the event COULD be used to describe the coinjoin endpoint, such as fees, round parameters, etc.
As a client, you SHOULD check that the event was created within the last 15 minutes, to ensure that the coinjoin endpoint is still active.
As a coinjoin endpoint provider, you SHOULD update the event every 15 minutes to signal you are still online.