commit ae96cd3abbed78e2fe6bb6ce73d7bb92405be885
parent 1b3904fb5ad69348e0dfc4ad7e8bd933f4921a11
Author: lash <dev@holbrook.no>
Date: Thu, 2 Apr 2026 19:40:15 -0600
WIP implement blink wallet
Diffstat:
4 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/requirements.txt b/requirements.txt
@@ -13,3 +13,4 @@ coincurve==20.0.0
lmdb==1.7.5
pycparser==2.23
uWSGI==2.0.31
+rencode==1.0.8
diff --git a/srvaddrgen/app/app.py b/srvaddrgen/app/app.py
@@ -14,6 +14,7 @@ path_btc = re.compile('^/bitcoin$')
reasons = {
400: 'Bad Request',
+ 404: 'Not Found',
}
class Responder(Exception):
@@ -102,7 +103,7 @@ def application(environ, start_response):
o = e
else:
- r.croak(404)
+ o.croak(404)
dbenv.close()
diff --git a/srvaddrgen/const.py b/srvaddrgen/const.py
@@ -4,3 +4,4 @@ class DbKey(enum.Enum):
ADDR = b'\x00'
BTC_XPUB = b'\x01'
BTC_LIGHTNING = b'\x02'
+ BLINK_LIGHTNING = b'\x03'
diff --git a/srvaddrgen/msg.py b/srvaddrgen/msg.py
@@ -6,6 +6,7 @@ import rencode
class ContactType(enum.Enum):
NOSTR = 'nostr'
+ EMAIL = 'email'
class Contact: