Commit graph

34 commits

Author SHA1 Message Date
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
6fd4940a0a
Use btcd btcctl test containers (#63)
* Use containers with test in name for btcd and btcctl

* Remove duplication of createdb script
2020-07-02 22:45:12 -07:00
Jonathan Zernik
2a88b51ec0
Simplify container names (#62)
* Rename docker lnd container

* Rename itest containers to avoid conflict with main containers
2020-07-02 22:28:26 -07:00
Jonathan Zernik
120befd511
Use persistent volume for db in docker-compose (#60) 2020-06-30 15:17:24 -07:00
Jonathan Zernik
80d67f0cd1
Fix external lnd host (#55) 2020-06-26 22:44:37 -07:00
Jonathan Zernik
1f19ab961b
Expose lnd port in docker compose (#54) 2020-06-26 03:07:00 -07:00
Jonathan Zernik
1fcd601bac
Fix lnd host config (#52)
* Fix lnd host config to not lookup ip by host

* Fix external lnd host
2020-06-26 02:33:30 -07:00
Jonathan Zernik
7dafb7ce2e
Fix macaroon path in docker config and change log level to info (#50) 2020-06-22 14:35:44 -07:00
Jonathan Zernik
21f3569887
Added lnd to docker compose (#49) 2020-06-22 13:55:20 -07:00
Jonathan Zernik
f939e9c81a
Use BACKEND param in lnd docker for bitcoin.node (#48) 2020-06-22 13:28:40 -07:00
Jonathan Zernik
e54de2b380
Make docker compose run (#45)
* Organize docker docker-compose file

* Got docker docker-compose working to start server with postgres db
2020-06-11 20:09:02 -07:00
Jonathan Zernik
12263cb556
Remove comments from itest script and remove old itest config.ini file (#40) 2020-06-09 23:58:44 -07:00
Jonathan Zernik
6fe55699f4
Add buy request (#39)
* Add buy squeak request

* Add payment of invoice in itest

* Use latest beta release of lnd

* Got connect peer from itest working

* Open channel in itest before trying to pay

* Add list channels and list peers commands

* Got lightning payment working

* Got full itest working with payment and decryption
2020-06-09 23:44:54 -07:00
Jonathan Zernik
30034d35ab
Use config file in docker (#38)
* Use config file mounted in docker container to run squeakserver

* Fix test script to shut down at end

* Expose port in dockerfile

* Update main docker-compose to use config file
2020-06-08 00:10:04 -07:00
yzernik
26586792ba Use port number that doesn't conflict with android emulator 2020-06-05 18:37:53 -07:00
Jonathan Zernik
cecaeec08f
Expose the squeakserver port to the host machine (#34) 2020-06-04 22:30:07 -07:00
Jonathan Zernik
0157d50064
Fix main docker file (#33)
* Shut down itest after complete, and fix docker compose

* Change squeak server listen port
2020-06-04 22:22:49 -07:00
yzernik
866b1e911d Remove link from server to btcd 2020-06-04 18:44:55 -07:00
Jonathan Zernik
907f535d91
Delete frontend (#29) 2020-06-04 17: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
79b078b44b
Make server address configurable in client (#18)
* Make server address configurable in client

* Made server host and port configurable
2020-06-03 15:45:36 -07:00
Jonathan Zernik
c032b5be0f
Fix client server rpc connection (#16)
* Trying to get connection from sqkclient to sqkserver

* Looks like connection from client to sqkserver may be working...

* Got client server rpc request to work
2020-06-03 15:00:57 -07:00
Jonathan Zernik
b78e868f53
Connect client and server (#15)
* Remove threading from uploader.

* Create rpc_client class in client to connect to server (using grpc) and verify that the upload_squeak method in rpc_client gets calleed

* Add main class with entry point in squeaknod/server

* Added sqkserver command and service to docker-compose for test

* Add server handler class, and still trying to load rpc implementation of server proto

* Almost got server grpc proto working, now only lnd client failing with tls cert issue

* Added server service and got it working in itest, it still doesn't do anything.
2020-06-03 02:59:56 -07:00
Jonathan Zernik
890fb68c7c
Speed up docker build by caching rpc file downloads. (#12) 2020-03-22 23:37:02 -07:00
Jonathan Zernik
f2f7f2bbd1
Fix installing rpc protocol files. (#10) 2020-03-20 18:44:58 -07:00
Jonathan Zernik
085f5f7419
Add itest test for make squeak in client. (#9)
* Add itest test for make squeak in client.

* Remove print lines.

* Add squeak to db after rpc request to make squeak.

* Got test working for reading blog post from client db.
2020-03-20 01:18:30 -07:00
Jonathan Zernik
fc2f783bab
Use config file for client (#7)
* Load configs from config file instead of command line options.

* Get the config object before the subcommand.

* Rename load client function.

* Rename load client function.

* Load client objects from config object

* Update config file templates.

* Rename rpc server start function.
2020-03-19 17:56:44 -07:00
Jonathan Zernik
b2a0bc97be
pass flask configs through cfg file. (#5)
* pass flask configs through cfg file.

* Remove print line

* Add db to client.

* Call the initialize db function before starting the client.

* Add script to install rpc (#6)

* Add script to install rpc

* Remove comment.

* pass flask configs through cfg file.

* Remove print line

* Add db to client.

* Call the initialize db function before starting the client.

* Fix initialize db function.

* Update install rpc script.
2020-03-19 15:35:48 -07:00
Jonathan Zernik
b9aa585799
Add script to install rpc (#6)
* Add script to install rpc

* Remove comment.
2020-03-19 15:02:03 -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