Commit graph

1561 commits

Author SHA1 Message Date
Jonathan Zernik
d7c12cbaf3
Simplify message conversion (#1922)
* Simplify squeak entry to message function

* Simplify squeak profile to message function

* Simplify peer to message function

* Simplify more object to message functions

* Simplify connected peer to message functions

* Simplify more object to message functions
2021-12-29 21:24:26 -08:00
Jonathan Zernik
069516989d
Simplify test run in github action (#1921)
* Simplify test run in github action

* Change git to https for pre-commit config
2021-12-29 19:18:13 -08:00
Jonathan Zernik
058240841d
Use python venv (#1920)
* Automatically install requirements.txt in setup

* Remove extra copy of requirements.txt in dockerfile
2021-12-29 18:48:53 -08:00
Jonathan Zernik
ce5cd6287c
Add release version badge to readme (#1919) 2021-12-29 16:12:28 -08:00
yzernik
54568b5c8b Release version 0.1.189 2021-12-29 13:24:40 -08:00
Jonathan Zernik
c7ac0e1294
Refactor private recipient indicator log into component (#1917)
* Refactor private recipient indicator log into component

* Update frontend build
2021-12-29 13:21:59 -08:00
Jonathan Zernik
bb3c24b007
Fix regression in display of unknown squeak. (#1916) 2021-12-29 12:55:46 -08:00
yzernik
5630df523d Release version 0.1.188 2021-12-28 19:03:34 -08:00
Jonathan Zernik
0ec9067668
Fix set sell price validation (#1915)
* Fix set sell price validation

* Update frontend build
2021-12-28 18:51:13 -08:00
Jonathan Zernik
d347534b55
Display private squeaks (#1914)
* Update squeak display entry in proto for private squeaks

* Add select private message recipient in make squeak dialog

* Show recipient of private squeak in squeak thread item

* Use squeak content str is null to determine background color of squeak component

* Update frontend build

* Refactor private squeak indicator to separate component

* Remove old comments

* Got private message recipient indicator working in thread item and detail item

* Add decrypt squeak dialog

* Got button showing for unlocked but encrypted squeak

* Show lock icon for squeak thread item when unlocked but still encypted

* Comment out get secret key method of controller

* Add rpc method for decrypt squeak content

* Got decrypt content working with recipient private key

* Update frontend build
2021-12-28 18:40:09 -08:00
Jonathan Zernik
e4bc4d7f4b
Add recipient public key to readme (#1911) 2021-12-28 09:56:38 -08:00
Jonathan Zernik
20d651df8e
Implement unlock private squeak (#1910)
* Add method stub for unlock private squeak in controller class

* Add methods to unlock private squeak in controller

* Remove todo comments

* Add test for create and decrypt private squeak in core module

* Update handler method for make squeak to support recipient profile id

* Add itest for make private squeak and unlock content as author
2021-12-28 01:07:59 -08:00
Jonathan Zernik
75d0b0634d
Split save secret key and unlock content methods (#1909)
* Split save secret key and unlock content methods of squeak store

* Unlock squeak content automatically after saving private key when squeak is not private
2021-12-27 21:13:56 -08:00
Jonathan Zernik
aef9afda61
Split set secret key and set decrypted content into separate methods of squeak db class (#1908) 2021-12-27 19:53:35 -08:00
Jonathan Zernik
e827db2ef7
Refactor unlock squeak method of squeak store (#1907) 2021-12-27 19:28:14 -08:00
Jonathan Zernik
da457825a8
Add more tests for squeak store (#1906)
* Use mock db for tests in squeak store

* Add assertion about event listener call in save squeak test

* Add test for save squeak when max squeaks is exceeded

* Add test for save squeak when max squeaks per pubkey per block is exceeded
2021-12-27 18:48:21 -08:00
Jonathan Zernik
9a2d37edb6
Add more tests for squeak store (#1905)
* Use mock db for tests in squeak store

* Add assertion about event listener call in save squeak test

* Add test for save squeak when max squeaks is exceeded

* Add test for save squeak when max squeaks per pubkey per block is exceeded
2021-12-27 17:56:05 -08:00
Jonathan Zernik
be2110d061
Fix codecov badge in readme (#1904) 2021-12-27 17:22:34 -08:00
Jonathan Zernik
ff3402a802
Use codecov token in github action (#1903) 2021-12-27 17:19:34 -08:00
Jonathan Zernik
d2e61a02f4
Validate squeak against blockchain inside squeak store class (#1902) 2021-12-27 17:00:03 -08:00
Jonathan Zernik
ba18874d16
Remove old comments in controller (#1901)
* Remove old comments in controller

* Add docstring to controller class
2021-12-27 14:24:34 -08:00
Jonathan Zernik
e6e59bb3fb
Include block header in make squeak method (#1900)
* Update make squeak method to include block header in return value

* Remove type hint from make squeak in twitter forwarder
2021-12-27 14:17:12 -08:00
Jonathan Zernik
cf64664a44
Update squeaklib to support private messages (#1898)
* Update squeaklib and update import from keys module

* Rename signing key variable to private key in test util

* Fix calling make squeak function

* Update db data file to v3

* Add recipient public key column to squeak table

* Got squeak entry db query working with alias for profiles table

* Add test for make squeak with recipient

* Add test case for get profile from squeak entry query

* Got outer join with recipient profile working

* Use outer join to get recipient profile for all squeak entry db queries

* Got itest passing with refactored squeak_store

* Remove unused config from squeak store class
2021-12-27 01:15:05 -08:00
Jonathan Zernik
51f412d75f
Update squeaklib to support private messages (#1897)
* Update squeaklib and update import from keys module

* Rename signing key variable to private key in test util

* Fix calling make squeak function

* Update db data file to v3

* Add recipient public key column to squeak table

* Got squeak entry db query working with alias for profiles table

* Add test for make squeak with recipient

* Add test case for get profile from squeak entry query

* Got outer join with recipient profile working

* Use outer join to get recipient profile for all squeak entry db queries
2021-12-27 00:56:31 -08:00
Jonathan Zernik
1a159a5f10
Fix max squeaks per public key per block height config (#1896) 2021-12-26 10:08:00 -08:00
Jonathan Zernik
47ebb3c49f
Refactor handle get data msg (#1895)
* Refactor handle get squeaks in connection

* Refactor handle get data in connection

* Remove old commented code

* Handle notfound response when not able to find squeak or secret key
2021-12-25 21:30:31 -08:00
Jonathan Zernik
0ecb73fac3
Update squeaklib and use new msg type (#1894)
* Use updated squeaklib with offer msg removed

* Bump squeaklib version and use methods to check if message has offer
2021-12-25 19:47:07 -08:00
Jonathan Zernik
427e82959a
Refactor save squeak in connection (#1893)
* Refactor save squeak method in connection

* Delete old commented methods

* Refactor save received offer in connection

* Refactor get squeaks and secret keys for interest in connection

* Delete old comments
2021-12-25 17:20:52 -08:00
Jonathan Zernik
69f31dda8b
Refactor connection methods into network handler (#1892)
* Refactor get unknown invs method to network handler

* Rename get unknown invs methods

* Rename get unknown invs methods

* Move get unknown invs method to network handler
2021-12-25 15:43:29 -08:00
Jonathan Zernik
6b16c0405a
Remove download handler (#1891)
* Remove download handler class

* Remove old comments about download handler
2021-12-25 13:37:18 -08:00
Jonathan Zernik
3c4504fbdd
Fix bug when lightning payment is not a squeak payment (#1890) 2021-12-25 11:04:25 -08:00
Jonathan Zernik
53533c04aa
Fix create contact profile from pubkey page (#1888)
* Fix create contact profile dialog open from pubkey page

* Update frontend build
2021-12-25 10:24:33 -08:00
Jonathan Zernik
b5801097b8
Implement squeak store v3 (#1886)
* Add test for insert squeak in squeak store

* Add test for delete squeak in squeak store

* Add test for save and get sent offer

* Add test for get received offer in squeak store

* Add subscription methods for squeak store

* Use squeak store in squeak controller

* Use squeak store for save squeak method in controller

* Use squeak store for unlock squeak method in controller

* Add comment to make squeak method

* Use squeak_store for more methods in controller

* Use squeak_store for price policy in controller

* Use squeak_store for create signing profile in controller

* Use squeak_store for more profile methods in controller

* Use squeak_store for more profile methods in controller

* Use squeak_store for create peer method in controller

* Use squeak_store for more peer methods in controller

* Use squeak_store for pay offer method in controller

* Use squeak_store for get sent payments and received payments method in controller

* Use squeak_store for get received offers method in controller

* Use squeak store for delete expired offers method

* Use squeak store for get squeak entries methods

* Use squeak store for save received offer method of controller

* Use squeak store for get followed public keys method of controller

* Use squeak store for reprocess received payments method of controller

* Use squeak store for delete old squeaks method of controller

* Use squeak store for like and unlike squeak method of controller

* Use squeak store for get connected peers method of controller

* Use squeak store for add and remove twitter account methods of controller

* Remove squeak_db param from controller constructor

* Use squeak core in squeak store for save squeak andunlock squeak

* Use squeak core in squeak store for make and get sent offer

* Remove old comments

* Remove more old comments

* Use squeak core in squeak store for save received offer

* Use squeak core in squeak store for pay received offer

* Use squeak core in squeak store for get interested struct

* Update twitter forwarder to use squeak store instead of squeak controller

* Update squeak deletion worker to use squeak store instead of squeak controller

* Delete old comments with lines about squeak controller

* Update squeak forwarder worker to use squeak store instead of squeak controller

* Update squeak secret key forwarder worker to use squeak store instead of squeak controller

* Update delete expired offers worker to use squeak store instead of squeak controller

* Update peer subscription workers to use squeak store instead of squeak controller

* Update peer autoconnect worker to use squeak store instead of squeak controller

* Remove usage of squeak controller in download manager start method.

* Add network handler class

* Remove unused constructor params from network handler

* Remove old comments
2021-12-25 09:47:55 -08:00
Jonathan Zernik
c2aeb344bc
Implement node settings (#1884)
* Implement node settings class

* Fix price policy for zero price

* Remove old comment

* Remove old comments

* Remove old comments
2021-12-23 08:33:40 -08:00
yzernik
d4a1843e30 Release version 0.1.187 2021-12-22 21:33:06 -08:00
Jonathan Zernik
cb8e8f2256
Remove old rpc servicer methods for bearer token commands (#1882) 2021-12-22 16:52:47 -08:00
Jonathan Zernik
9f0d5e4097
Include bearer token in twitter account (#1881)
* Got twitter forwarder working with bearer token in twitter accounts table

* Update frontend to use bearer token in twitter account

* Update frontend build
2021-12-22 16:10:03 -08:00
yzernik
ae88dcc75f Release version 0.1.186 2021-12-20 17:14:32 -08:00
Jonathan Zernik
162bb247e9
Rename controller methods to use pubkey (#1876)
* Rename get profile by public key method

* Rename get entries by public key method

* Rename download squeaks by public key method

* Rename subscribe entries by public key method
2021-12-20 17:12:54 -08:00
Jonathan Zernik
3860ec3b11
Rename methods using address to pubkey (#1875)
* Rename get_profile_by_pubkey method

* Rename get entries by pubkey method

* Rename download squeaks by pubkey method

* Rename subscribe entries by pubkey method
2021-12-20 16:23:52 -08:00
Jonathan Zernik
88647dd783
Change url path for pubkey page (#1873)
* Change url path for pubkey page

* Update frontend build
2021-12-20 10:27:29 -08:00
Jonathan Zernik
5198467889
Use new squeak protocol with schnorr and pubkey as identifier (#1870)
* Got all tests in core dir passing

* Got all tests in db dir passing

* Got tests for admin dir passing

* Got all unit tests passing

* Added migration for squeak table and profile table using new pubkey

* Re-start db migrations with new data-v2.db file

* Fix column type for profile public key

* Got all itests passing

* Log the public key in hex in create contact profile handle fn

* Rename rpc methods to use pubkey instead of address

* Got frontend mostly working with new profile pubkey

* Update frontend to use pubkey instead of address

* Change size of squeak profile detail item

* Update create contact profile dialog to use pubkey

* Update twitter account item to use pubkey

* Include label for pubkey in profile detail item

* Decrease size of profile detail item

* Update frontend build

* Improve logging of requests in handler
2021-12-20 09:28:38 -08:00
Jonathan Zernik
788ab47334
Add telegram group (#1869)
* Add link to telegram group to readme

* Fix link to telegram group

* Fix link to telegram group
2021-12-17 05:50:37 -08:00
yzernik
d1ce6d6a3b Release version 0.1.185 2021-12-16 06:13:02 -08:00
Jonathan Zernik
090dc832a3
Remove build step to echo image digest (#1867) 2021-12-16 06:05:41 -08:00
Jonathan Zernik
8ede6a8f47
Add more tags to docker build for container registry (#1866) 2021-12-16 06:04:01 -08:00
yzernik
764ec5d40b Release version 0.1.184 2021-12-16 05:16:56 -08:00
Jonathan Zernik
8e69f7f77d
Use check icon for twitter mirror status (#1864)
* Use check mark icon for twitter mirroring status

* Update frontend build
2021-12-16 04:39:37 -08:00
Jonathan Zernik
72aeb2023b
Improve UI twitter page (#1863)
* Remove text with count of twitter accounts

* Rephrase text for twitter connections status

* Update frontend build

* Change text for twitter mirroring status

* Update frontend build
2021-12-16 04:00:42 -08:00
Jonathan Zernik
ed50b71ce2
Change sidebar peers icon (#1862)
* Change sidebar icon for peers page

* Update frontend build
2021-12-15 14:42:39 -08:00