Commit graph

16 commits

Author SHA1 Message Date
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
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
a7ac6c67ee
Fix closing of connection after use in connection pool (#46) 2020-06-11 23:02:44 -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
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
2f30f90a75
Handle lookup requests with empty address list without crashing (#35) 2020-06-05 20:24:18 -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
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
Renamed from squeaknode/server/postgres_db.py (Browse further)