-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from getAlby/task-single-relay
chore: stay connected to a default relay
- Loading branch information
Showing
3 changed files
with
102 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package nostr | ||
|
||
import "github.com/nbd-wtf/go-nostr" | ||
|
||
const ( | ||
NIP_47_INFO_EVENT_KIND = 13194 | ||
NIP_47_REQUEST_KIND = 23194 | ||
NIP_47_RESPONSE_KIND = 23195 | ||
) | ||
|
||
type WalletConnectInfo struct { | ||
RelayURL string | ||
WalletPubkey string | ||
Secret string | ||
} | ||
|
||
type ErrorResponse struct { | ||
Message string `json:"message"` | ||
} | ||
|
||
type InfoRequest struct { | ||
RelayURL string `json:"relayUrl"` | ||
WalletPubkey string `json:"walletPubkey"` | ||
} | ||
|
||
type NIP47Request struct { | ||
RelayURL string `json:"relayUrl"` | ||
WalletPubkey string `json:"walletPubkey"` | ||
SignedEvent *nostr.Event `json:"event"` | ||
WebhookURL string `json:"webhookURL"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters