feat: partial NIP11

This commit is contained in:
Vlad Stan 2023-02-03 16:37:27 +02:00
parent 9b9e2623be
commit cbbabf2ce8
2 changed files with 23 additions and 0 deletions

View file

@ -20,6 +20,16 @@ class NostrRelay(BaseModel):
def from_row(cls, row: Row) -> "NostrRelay":
return cls(**dict(row))
class NostrRelayInfo(BaseModel):
name: Optional[str]
description: Optional[str]
pubkey: Optional[str]
contact: Optional[str] = "https://t.me/lnbits"
supported_nips: List[str] = ["NIP01", "NIP09", "NIP11"]
software: Optional[str] = "LNbist"
version: Optional[str]
class NostrEventType(str, Enum):
EVENT = "EVENT"
REQ = "REQ"