Commit graph

124 commits

Author SHA1 Message Date
Jonathan Zernik
41b3f5ac0a
Organize appbar and sidebar (#104)
* Organize appbar and sidebar

* Remove mail and profile buttons from appbar
2020-07-21 04:47:18 -07:00
Jonathan Zernik
6924bdb671
Add get signing profiles rpc (#103)
* Add get signing profiles rpc method

* Don't include private key in squeak profile response, only a boolean
2020-07-21 04:23:52 -07:00
Jonathan Zernik
2b762438ca
Remove buy template link in frontend (#102)
* Remove buy to unlock button in frontend

* Optimize frontend dockerfile
2020-07-21 02:11:13 -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
yzernik
670da3a9fe Fix PublicRoute 2020-07-20 21:22:30 -07:00
Jonathan Zernik
12ec1bbd59
Don't require login for frontend (#99) 2020-07-20 20:07:01 -07:00
Jonathan Zernik
4d84dcb90e
Use react material template for frontend (#98)
* Use react material design template for frontend

* Successfully make rpc request inside material design template

* Make rpc request in tables page

* Run react frontend in development mode for now

* successfully get squeaks in tables page

* Use production server in frontend dockerfile

* Update gitignore to ignore generated proto files

* Organize npm package
2020-07-20 19:43:15 -07:00
Jonathan Zernik
b4fa706f73
Use material ui (#97)
* Use material-ui

* Clean up frontend dockerfile
2020-07-20 02:30:51 -07:00
Jonathan Zernik
ebe9a2611e
Use react for frontend (#96)
* Use reactjs for frontend

* Add dependencies from gprc example to react app

* Got admin rpc request working inside react app

* Show message in react app with correct label
2020-07-20 01:29:12 -07:00
Jonathan Zernik
a45c3b62be
Add envoy proxy (#95)
* Add envoy proxy

* Add frontend, still not working

* Open port to frontend

* Fix static html page

* Fix url in client js code, but CORS is still blocked

* Successfully make request from browser to sqkserver through proxy

* Expose ports for sqkserver in docker

* Remove unused frontend files

* Remove duplicate envoy config file
2020-07-19 20:20:34 -07:00
Jonathan Zernik
235ec52b03
Use helper method in admin servicer to make squeak display result (#94) 2020-07-19 13:28:46 -07:00
Jonathan Zernik
a32ae4f299
Include block time in squeak entry response (#93) 2020-07-19 04:02:31 -07:00
Jonathan Zernik
4bbca79979
Auto format (#92) 2020-07-19 02:31:45 -07:00
Jonathan Zernik
195e5be57f
Parse squeak entry in helper method (#91)
* Use helper method to parse squeak entry from db query

* Use helper method to parse squeak profile from query resuly, and use dictionary row results for all query results
2020-07-19 02:25:35 -07:00
Jonathan Zernik
149c55b4d3
Use lowercase and underscores in sql tables column names (#90) 2020-07-19 01:50:48 -07:00
Jonathan Zernik
888eeeca6b
Return squeak with profile (#89)
* Return squeakentry with profile using join in admin rpc.

* Return squeak display entry successfully in itest.
2020-07-19 01:25:34 -07:00
Jonathan Zernik
970a991ebc
Return squeakentry with squeak and blockheader from db query (#88) 2020-07-18 23:49:45 -07:00
Jonathan Zernik
6f15f8196d
Save block header in squeak table after verifying block hash of squeak (#87) 2020-07-18 22:35:26 -07:00
Jonathan Zernik
eb5a530da7
Don't check for price to be zero in main module (#86) 2020-07-18 19:50:19 -07:00
Jonathan Zernik
4a2961de54
Add black to make codeformat in makefile (#85) 2020-07-18 19:40:28 -07:00
Jonathan Zernik
87b2a3de7d
Format imports with isort in makefile (#84) 2020-07-18 19:25:31 -07:00
Jonathan Zernik
150570c721
Add squeak node class (#83)
* Add squeaknode class

* Use squeaknode for all handler methods in server handler

* Use squeaknode class in admin server handler
2020-07-18 19:15:05 -07:00
Jonathan Zernik
81a6915506
Improve squeak block verifier (#82)
* Improve squeak block verifier

* Add worker to process unverified squeaks from queue
2020-07-18 17:59:08 -07:00
Jonathan Zernik
404772372f
Add btcd credentials to sqkserver config (#81)
* Add btcd credentials and rpc cert to sqkserver configs

* Start the squeak block verifier worker thread on startup

* Btcd request still failing because of cert

* Got btcd client working

* Use valid block hash and height in itest
2020-07-18 17:19:43 -07:00
Jonathan Zernik
824eabc418
Add make codeformat target (#80) 2020-07-18 04:38:10 -07:00
Jonathan Zernik
6509bf0406
Add codechecks to make test (#79) 2020-07-18 03:38:32 -07:00
Jonathan Zernik
c4b64ebb6d
Return lnd wallet balance response in admin rpc proto (#78) 2020-07-18 03:16:51 -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
a5776a6e9b
Remove decrypt content failed assertion from itest (#76) 2020-07-17 22:19:48 -07:00
Jonathan Zernik
513527cd27
Make squeak with admin rpc (#75)
* Make squeak admin rpc method.

* Get the squeak back after making it through admin rpc make squeak method
2020-07-17 22:12:16 -07:00
Jonathan Zernik
7d530b25f4
Successfully create and get signing squeak profile (#74) 2020-07-17 16:42:22 -07:00
Jonathan Zernik
89ddf0fbcb
Remove unused commented sleep in itest after channel open (#73) 2020-07-16 23:04:40 -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
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