Jonathan Zernik
cdca52b7e2
Rename followed to following ( #170 )
...
* Rename followed field to following in profile
* Rename shared field to sharing in profile
* Revert changes to icons.js
* Rename following squeaks to followed squeaks
* Fix frontend for renamed get followed request
2020-07-29 21:48:42 -07:00
Jonathan Zernik
3543f498cc
Fix set followed method ( #168 )
...
* Fix set followed rpc method
* Fix get followed squeaks method
2020-07-29 16:53:52 -07:00
Jonathan Zernik
cbe0d4014a
Add whitelist ( #164 )
...
* Add whitelist class
* Add itest for setting whitelisted field of a profile
2020-07-29 01:09:23 -07:00
yzernik
e01b4de121
Add todo to get followed squeaks query
2020-07-28 15:25:26 -07:00
Jonathan Zernik
06e642b19c
Add profile whitelist ( #160 )
...
* Add whitelisted field to profile table
* Fix adding whitelisted field to profile, itest passes now
2020-07-28 02:05:33 -07:00
Jonathan Zernik
b207469046
Add max squeak per block config ( #159 )
...
* Add max squeaks per block per address config
* Add rate limiter class
* Check rate limiter in squeaknode before saving squeak
* Got working itest with rate-limited requests
2020-07-28 01:10:04 -07:00
Jonathan Zernik
35de989e14
Fix order of ancestor thread squeaks ( #156 )
2020-07-27 03:36:47 -07:00
Jonathan Zernik
a37296565c
Thread ancestors db query ( #153 )
...
* Add replyto field to squeak display response in rpc method
* Got thread ancestors query working mostyly
* Got thread ancestors query working
* Fix docstring for ancestor query
* Add check for ancestor query to itest
2020-07-27 00:55:58 -07:00
Jonathan Zernik
441aecd148
Create tabls in profiles page ( #137 )
...
* Create tab for signing profiles in profiles page
* Add rpc methods to create and get contact profiles
* Create tab for contact profiles
* Create page for create profile
* Fix submit create contact profile form
* Fix get contact profiles request in profiles page
* Fix validation of squeak address in create contact method
* Validate squeak address in create contact profile frontend
2020-07-24 22:43:39 -07:00
Jonathan Zernik
47617b0276
Add makesqueak page ( #117 )
...
* Add makesqueak page
* Return None when squeak is not found in database
2020-07-22 16:51:41 -07:00
Jonathan Zernik
bd100c3006
Add get profile by address rpc method ( #112 )
2020-07-21 17:42:19 -07:00
Jonathan Zernik
cb282d9af3
Add get squeaks for address rpc method ( #108 )
2020-07-21 16:12:26 -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
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
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
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
7d530b25f4
Successfully create and get signing squeak profile ( #74 )
2020-07-17 16:42:22 -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
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