Commit graph

91 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
b5b4344e97
Update LICENSE (#71) 2020-07-15 16:00:13 -07:00
Jonathan Zernik
47a60ef674
Include challenge proof in protocol (#70)
* Include challenge/proof in buy offer protocol

* Include proof bytes in offer message
2020-07-07 20:01:43 -07:00
Jonathan Zernik
d7d349d5c9
Decryption key is required non null field (#69) 2020-07-05 18:43:33 -07:00
yzernik
e6d5dafce9 Update squeaklib to 0.3.3 2020-07-05 18:21:08 -07:00
Jonathan Zernik
5cdd868af8
Rename db columns (#68) 2020-07-05 18:02:15 -07:00
Jonathan Zernik
fc50f97525
Use version 0.3.2 of squeaklib (#67) 2020-07-05 17:48:47 -07:00
Jonathan Zernik
220b1eed22
Update to work with squeaklib 0.3.1 (#66) 2020-07-05 16:37:45 -07:00
Jonathan Zernik
ce6991214a
Use bytea postgres type for key (#65)
* Use bytea type for storing decryption key in postgres

* Use bytea type for encryption key

* Use bytea type for scrippubkey and scriptsig

* Remove content field from postgres db
2020-07-04 16:00:05 -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
fd2b31a2a6
Update readme (#61)
* Update readme

* Fix underlines in readme

* Fix config file reference in readme

* Use markdown for readme

* Fix markdown readme
2020-07-02 21:18:10 -07:00
Jonathan Zernik
120befd511
Use persistent volume for db in docker-compose (#60) 2020-06-30 15:17:24 -07:00
Jonathan Zernik
96e5568c65
Remove license from squeak proto (#59) 2020-06-30 02:20:40 -07:00
Jonathan Zernik
1a9de37e50
Improve logging (#58)
* Improve loggin in handler

* Log hashes as hex strings
2020-06-30 02:14:17 -07:00
Jonathan Zernik
7c71a23448
Remove hash from post response (#57) 2020-06-30 01:36:11 -07:00
Jonathan Zernik
0037461cf4
Return get squeak without data key (#56)
* Return squeak from get method without data key

* Use price from config file to set sell price
2020-06-30 00:57:48 -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
256fc292da
Fix reading lng host config (#53) 2020-06-26 02:53:59 -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
7a79f4b569
Change type of port to int in protocol in buy offer (#51) 2020-06-24 00:17:12 -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
f09306b493
Simplify itest (#47) 2020-06-13 14:58:45 -07:00
Jonathan Zernik
a7ac6c67ee
Fix closing of connection after use in connection pool (#46) 2020-06-11 23:02:44 -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
yzernik
cd1f92d297 Remove docker-compose dependency on shared volume for sqkserver 2020-06-11 18:41:17 -07:00
Jonathan Zernik
1e9a81da59
Use connection for for postgres db (#44) 2020-06-11 18:06:18 -07:00
Jonathan Zernik
278fa38db6
Init db on startup (#43)
* Create db tables on startup

* Move createdb script for itest to itest folder

* Fix teardown of dockercompose containers
2020-06-11 17:44:23 -07:00
Jonathan Zernik
a9aabf7633
Organize lnd config (#42)
* Remove lnd folder and use tls cert path and macaroon path in config file

* Remove commented lines in lnd client

* Rename rpc_host to host in lnd config

* Removed lnd_bob and lnd_carol
2020-06-10 12:47:30 -07:00
Jonathan Zernik
63553ca922
Organize lnd config (#41)
* Remove lnd folder and use tls cert path and macaroon path in config file

* Remove commented lines in lnd client

* Rename rpc_host to host in lnd config
2020-06-10 12:44:56 -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
Jonathan Zernik
057d9495d4
Clean up validation of squeak requests (#37)
* Move hashing function for squeak requests to util module

* Remove sayHello method from protocol
2020-06-06 19:10:12 -07:00
yzernik
964920bbbb Fix endianness of hash in db 2020-06-06 18:40:43 -07:00
Jonathan Zernik
4c80d01e42
Always use mainnet for squeak code (#36) 2020-06-06 12:46:02 -07:00
Jonathan Zernik
2f30f90a75
Handle lookup requests with empty address list without crashing (#35) 2020-06-05 20:24:18 -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
Jonathan Zernik
4ffe10e131
Add lookup squeaks to api (#32)
* Add lookup squeaks to protocol and add method

* Get the same squeak back in itest after posting

* Got lookup squeaks api working
2020-06-04 20:42:48 -07:00
yzernik
866b1e911d Remove link from server to btcd 2020-06-04 18:44:55 -07:00
Jonathan Zernik
56793d1d61
Fix mising import in dummy blockchain (#31) 2020-06-04 18:34:12 -07:00
Jonathan Zernik
0a47aa0568
Got unit tests passing (#30) 2020-06-04 18:30:48 -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