Nostr bech32 dm (#109)

* nostr: bech32 keys and remember last DM check

* cump to 0.9.2

* make format
This commit is contained in:
calle
2023-02-13 23:19:19 +01:00
committed by GitHub
parent 53aa73b7c7
commit 5ec2c3604e
10 changed files with 84 additions and 19 deletions

View File

@@ -144,3 +144,28 @@ async def m006_invoices(db: Database):
);
"""
)
async def m007_nostr(db: Database):
"""
Stores timestamps of nostr operations.
"""
await db.execute(
f"""
CREATE TABLE IF NOT EXISTS nostr (
type TEXT NOT NULL,
last TIMESTAMP DEFAULT NULL
)
"""
)
await db.execute(
f"""
INSERT INTO nostr
(type, last)
VALUES (?, ?)
""",
(
"dm",
None,
),
)