add nip57 constants

This commit is contained in:
cj-ibex
2023-03-11 10:53:17 -06:00
committed by fiatjaf_
parent 7be5330d42
commit 483f40a596

View File

@ -4,9 +4,10 @@ import (
"crypto/sha256" "crypto/sha256"
"encoding/hex" "encoding/hex"
"fmt" "fmt"
"time"
"github.com/btcsuite/btcd/btcec/v2" "github.com/btcsuite/btcd/btcec/v2"
"github.com/btcsuite/btcd/btcec/v2/schnorr" "github.com/btcsuite/btcd/btcec/v2/schnorr"
"time"
) )
type Event struct { type Event struct {
@ -36,6 +37,8 @@ const (
KindChannelMessage int = 42 KindChannelMessage int = 42
KindChannelHideMessage int = 43 KindChannelHideMessage int = 43
KindChannelMuteUser int = 44 KindChannelMuteUser int = 44
KindZapRequest int = 9734
KindZap int = 9735
) )
// GetID serializes and returns the event ID as a string // GetID serializes and returns the event ID as a string