Commit graph

19 commits

Author SHA1 Message Date
Jonathan Zernik
12f7b62349
Add toggle for connect with tor (#1550)
* Added use_tor option to peer address class and grpc message

* Got itest passing without tor

* Got peer connection working in UI with tor toggle

* Able to connect to with and without tor

* Got save peer working with tor and without tor

* Add use_tor field to peer address everywhere.

* Fix usage of useMemo in peer address page
2021-10-09 22:26:54 -07:00
Jonathan Zernik
6aae503de8
Create lightning client base class (#1542)
* Add unit test for add invoice in test lnd lightning client

* Add new create invoice method of lightning client and add unit test
2021-10-08 20:40:58 -07:00
Jonathan Zernik
d9150be433
Delete old peer rpc proto (#986) 2021-08-20 00:30:50 -07:00
Jonathan Zernik
9b14c8016b
Package for umbrel (#528)
* Switch dockerfile base image to buster

* Try to make build work for umbrel

* Remove libs from Dockerfile

* Add build-essential to dockerfile

* Make sqk_dir configurable with environment variable

* Use new env var names
2020-12-30 16:46:48 -08:00
Jonathan Zernik
34ec5deee8
Use python slim docker base image (#516)
* Use python slim image for both squeaknode and test

* Clean up dockerfiles

* Reorder dockerfile for squeaknode

* Load alembic config file from packaged module

* Alembic directory is now loaded from packaged module

* Got multi-stage docker build working

* Removed old app directory from docker config

* Remove commented package data arg from setup.py

* Remove unused alembic graft from manifest

* Fix extra space in alembic revision
2020-12-27 04:59:59 -08:00
Jonathan Zernik
00fc72514f
Use squeaklib with ptlc (#502)
* Rename secret_key

* More work to convert to using PTLC

* Updated most code for PTLC

* More work to use ptlc with secret key

* Got itest passing

* Remove unused import

* Use version 0.5.0 of squeaklib

* Added simple unit test for squeak controller

* Use modular addition subtraction for secret key nonce tweak

* Move util to core folder

* Store secret key as hex in database

* Store nonce as hex in db
2020-12-25 20:17:54 -08:00
Jonathan Zernik
7195174a8b
Rename common module to lightning (#439) 2020-11-10 18:50:33 -05:00
Jonathan Zernik
99ddc2df77
Rename to squeaknode (#342)
* Rename squeakserver to squeaknode and get itest passing

* Fix itest dockerfile

* Rename more squeakserver to squeaknode

* Rename database from squeakserver to squeaknode

* Update readme

* Remove frontend/build from git

* Rename squeakserver to squeaknode in tox and main
2020-10-29 14:35:17 -04:00
Jonathan Zernik
3c13fa01af
Use pytest for itest (#161)
* Use pytest for itest

* Use pytest for itests
2020-07-28 19:49:44 -07:00
Jonathan Zernik
cead19b024
Optimize dockerfiles and update get wallet balance rpd method (#101) 2020-07-21 01:35:04 -07:00
Jonathan Zernik
446479c9df
Lnd get info from frontend (#100)
* Get lnd get_info from frontend

* Keep local copy of lnd.proto in source code in proto folder
2020-07-20 22:52:04 -07:00
Jonathan Zernik
41de02983f
Organize proto files (#77)
* Organize proto files into top-level proto folder

* Use the new proto folder in test docker container

* Remove old proto files
2020-07-18 03:06:39 -07:00
Jonathan Zernik
0bef07e133
Add admin rpc server (#72)
* Add admin rpc server

* Use the admin rpc to get the balance of the server in itest
2020-07-16 22:56:37 -07:00
Jonathan Zernik
74817948cc
Use new squeak protocol (#64)
* Use new squeak protocol with encryption/decryption key instead of data key hash.

* Use from_bytes method for encrypted decryption key

* Undo changes to use temporary local install of squeaklib
2020-07-03 21:51:47 -07:00
Jonathan Zernik
88108f7810
Rename squeaknode to squeakserver (#28)
* Rename server entrypoint

* Updated manifest

* Moved db init.sql file

* Rename module to squeakserver
2020-06-04 17:47:49 -07:00
Jonathan Zernik
70cbc6ffac
Remove sqkclient (#24)
* Removed sqkclient

* Remove docker folder for sqkclient

* Upgrade docker images
2020-06-04 16:49:13 -07:00
Jonathan Zernik
733da334a5
Run itest direct connection to server (#23)
* Run itest with direct connection to server

* Add dummy blockchain client

* Got itest working with direct post to server

* Rename lnd rpc proto module

* Making lnd lightning client able to take proto module as param

* Pass ln proto module as param to lnd lightning client

* Able to import lnd client in test container

* Able to get wallet balance in test direct from rpc client
2020-06-04 15:36:50 -07:00
Jonathan Zernik
740148a287
Add postgres db (#20)
* Add postgres db to server

* Able to connect to postgres

* Connect to postgres successfully without error by omitting database name that doesnt exist

* Create squeak table in initdb script

* Fix data types for columns in squeak table

* Construct server handler with a db connection instance

* Use context manager for db connection and cursor

* Implement insert_squeak method, still not working.

* Updated squeak table schema and insert method

* Got itest working with bob downloading alice's squeak from the server
2020-06-04 02:41:16 -07:00
Jonathan Zernik
6851466aed
Itest for squeaknodeclient (#3)
* Add itest for squeaknode client, not passing yet

* Got working itest with get wallet balance

* Change name of squeak node client class.
2020-03-01 00:15:24 -08:00