From b24b91fa851deba88c279f02687eaeaa6669a66a Mon Sep 17 00:00:00 2001 From: Oleg Silkin Date: Fri, 19 Jul 2019 00:31:57 -0400 Subject: [PATCH] Adds lbrynet to conf --- config/conf.json | 3 ++- requirements.txt | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/config/conf.json b/config/conf.json index d72a4b5..1dcbdfe 100644 --- a/config/conf.json +++ b/config/conf.json @@ -11,5 +11,6 @@ "LOGGING_FORMAT": "%(asctime)s - %(levelname)s - %(module)s - %(funcName)s - %(message)s", "HOST": "localhost", "PORT": 5921, - "BACKUP_INT": 3600 + "BACKUP_INT": 3600, + "LBRYNET": "http://localhost:5279" } \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 0042cb5..ec59847 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,40 @@ Faker>=1.0.7 asyncio>=3.4.3 aiohttp==3.5.4 aiojobs==0.2.2 +ecdsa==0.13 +cryptography==2.5 aiosqlite==0.10.0 PyNaCl>=1.3.0 requests cython + +{ + "items": [ + { + "comment": "Sick chess set", + "comment_id": "a1336c28a0752d6695d6588330842e8d43f4f89839193a0fe09b3eb8dee0588d", + "timestamp": 1561669743 + }, + { + "channel_id": "6d266af6c25c80fa2ac6cc7662921ad2e90a07e8", + "channel_name": "@bbbbb", + "channel_url": "lbry://@bbbbb#6d266af6c25c80fa2ac6cc7662921ad2e90a07e8", + "comment": "YOLO", + "comment_id": "676266d2a750a206cf279ff777a21e2914acb33b820cef9ea8479afb3d926d58", + "is_channel_signature_valid": true, + "signature": "e8ad5dbc268365e5d16f6a9b5d82323efc550412a7a291aa3e715e31641cc57b18241a132ebed28a848086fca6e200a735281c631c7474b01b4c32851ea3dd57", + "signing_ts": "1561669614", + "timestamp": 1561669614 + } + ], + "page": 1, + "page_size": 50, + "total_items": 2, + "total_pages": 1 +} + +pieces = [ + comment['signing_ts'].encode(), + channel.claim_hash, + comment['comment'].encode() + ] \ No newline at end of file