Sergi Delgado Segura
d37b6b6de2
Merge branch 'master' into 46-docstrings
2019-12-16 12:02:04 +01:00
Sergi Delgado Segura
399c25044a
Merge branch 'simplify'
2019-12-16 11:59:05 +01:00
Sergi Delgado Segura
a7eb22626e
Some fixes based on review comments
2019-12-16 11:58:14 +01:00
Sergi Delgado Segura
2575d1c469
Merge branch 'circle-ci' into 46-docstrings
2019-12-16 11:42:30 +01:00
Sergi Delgado Segura
9034e6d702
Updates circleci config to match bc250bd814
...
Cli tests are commented out for now
2019-12-16 11:38:25 +01:00
Sergi Delgado Segura
61663e89d7
Refactors tests folder to separate different modules
...
Each module has a different folder and they do not share methods now. At some point they should be split in different repos
2019-12-16 11:26:51 +01:00
Sergi Delgado Segura
bc250bd814
Gives some default values to sample_conf
2019-12-16 11:06:11 +01:00
Sergi Delgado Segura
fac0edf0c5
Remove creating keys from config
2019-12-16 11:02:17 +01:00
Sergi Delgado Segura
0574898bae
Adds circule-ci config + updates requirements
2019-12-16 10:57:16 +01:00
Sergi Delgado Segura
2f67ecfa6e
Changes sk_path to sk_der in Watcher
...
The Watcher used to receive a secret key file path ion the __init__ to load a secret key for signing. That made testing the Watcher hard, since the file needed to be present. Changing it so the main (pisad) loads the file from disk and passes the data the Watcher on init.
2019-12-16 10:54:13 +01:00
Sergi Delgado Segura
e6fd9f77cf
Fixes return types for cryptographer
2019-12-16 10:25:33 +01:00
Sergi Delgado Segura
63488cb69e
Fixes wrong identation in Watcher
2019-12-13 19:44:19 +01:00
Sergi Delgado Segura
83c73d5df4
Docstrings for common package
2019-12-13 18:13:29 +01:00
Sergi Delgado Segura
e2ca226b11
Last formatting details troughout the codebase
2019-12-13 18:13:29 +01:00
Sergi Delgado Segura
008a71da3a
Renames matches to breaches to be consistent with the Responder. Also adds docstrings
2019-12-13 18:13:29 +01:00
Sergi Delgado Segura
d881706eb3
Refactors the codebase to match the new naming from 793d563b8c053136dd5f936b0ef0cd88af215b06 and 3046eae38ee3f34857c96e6b9d43e645f7d2de2d
2019-12-13 18:13:29 +01:00
Sergi Delgado Segura
7c1986dfc8
Renames ZMQHandler to ZMQSubscriber
2019-12-13 18:13:29 +01:00
Sergi Delgado Segura
91ca9e539f
Adds Responder docstrings fixes get_txs_to_rebroadcast and renames some methods
...
get_txs_to_rebroadcast was beinf triggered based on received transactions indstead of stored txs. Fixing that.
Some of the names in the Responder were poorly picked (not descriptibe enough). Tries to fix that.
``Job`` class has been renames to ``TransactionTracker``.
``add_response`` has been renamed to ``handle_breach`` and ``create_job`` to ``add_tracker``.
All the variables that has `job` on it have already been updated.
2019-12-13 18:12:04 +01:00
Sergi Delgado Segura
b53627aa6d
tools docstrings
2019-12-11 14:22:18 +01:00
Sergi Delgado Segura
2eafb644c3
Adds Logger docstrings
2019-12-11 14:22:09 +01:00
Sergi Delgado Segura
df5dcbdfe9
Renames dispute_delta to to_self_delay and justice tx to penalty tx
...
Uses the naming convention followed by LN implementations and BOLTs
2019-12-11 12:45:05 +01:00
Sergi Delgado Segura
6a7cd4d3aa
Adds Inspector docstrings. Replaces dispute_delta by to_self_delay
2019-12-11 12:41:08 +01:00
Sergi Delgado Segura
c17c3af32a
DBManager docstrings
2019-12-10 20:10:22 +01:00
Sergi Delgado Segura
2cdd78b8e6
Simplifies the Cleaner and adds docstrings
...
We were passing some unnecessary parameters to the Cleaner (locator) that could be derived from other data (uuid and appointments). Also standarises the order of the parameters to match the rest of the methods
2019-12-10 13:31:42 +01:00
Sergi Delgado Segura
b0bf653ba4
Carrier docstrings
2019-12-10 12:28:01 +01:00
Sergi Delgado Segura
f287bdf073
Fixes returns
2019-12-10 12:02:25 +01:00
Sergi Delgado Segura
899b60c083
Adds Builder docstrings
2019-12-10 11:33:01 +01:00
Sergi Delgado Segura
a6a38ff33c
BlockProcessor docstrings
2019-12-10 11:10:10 +01:00
Sergi Delgado Segura
6e196b25bd
Capitalization of returns first char
2019-12-10 10:44:52 +01:00
Sergi Delgado Segura
05dad7d38b
Further improvements, including references
2019-12-09 20:08:05 +01:00
Sergi Delgado Segura
6a5a23a1d6
Fixes format for line breaks
2019-12-09 19:23:57 +01:00
Sergi Delgado Segura
a8f4bfc1ee
Updates gitignore
2019-12-09 19:23:38 +01:00
Sergi Delgado Segura
add5d262b6
Includes Appointment docstrings and redesigns triggered flag
...
The triggered flag is only used to interact with the DB but it was kept as an Appointment attribute. Now it is only used when exporting to json, which is used to store data into the db.
2019-12-09 14:36:16 +01:00
Sergi Delgado Segura
641cc3be4f
api docstrings
2019-12-09 14:33:31 +01:00
Sergi Delgado Segura
dac9f56901
Gets rid of Appointment.serialize()
...
The method is replaced by signature_foramt in Cryptographer
2019-12-09 13:31:06 +01:00
Sergi Delgado Segura
589d24c472
Removes old TODO.md file
2019-12-09 10:17:30 +01:00
Sergi Delgado Segura
d39056a0cc
Refactors signing/verifiying functionality to be part of the Cryptographer
...
- All encryption/decryption and signing/verifying calls are performed by the cryptographer now.
- The current signature format is temporal. We should define something not base on json.
- Some Cryptographer tests are still missing.
- The cli tests should be modified to fit this too.
2019-12-07 13:22:39 +01:00
Sergi Delgado Segura
ae676e6632
Changes key encoding format from PEM to DER
2019-12-07 13:22:13 +01:00
Sergi Delgado Segura
a8800ac375
Integrates encryption/decryption within the Cryptographer. Close #63
...
Includes unittests. Also reformats test_inspector to avoid using cli functions
2019-12-06 13:23:02 +01:00
Sergi Delgado Segura
3c95c31bc8
Creates tools shared between client and server side
...
Includes check_txid_format that has been renamed. Close #12 #43
2019-12-06 13:20:58 +01:00
Sergi Delgado Segura
5f7cd7e189
Delete old TODOs
2019-12-05 11:34:44 +01:00
Sergi Delgado Segura
b4197aa5bb
Replaces hardcoded 16/32 for LOCATOR lengths
2019-12-05 11:26:58 +01:00
Sergi Delgado Segura
bd08b151df
Replaces locator with common/constants value
2019-12-05 11:03:36 +01:00
Sergi Delgado Segura
ac912aea69
Removes unused errors, redefines the ones after those
2019-12-05 11:02:46 +01:00
Sergi Delgado Segura
babb746dbd
Create common package
...
Moves cryptographer to common. Also adds constants and defines the leghtn of the locator to avoid hardcoding it in almost every file
2019-12-05 11:02:17 +01:00
Sergi Delgado Segura
f0150ce585
Removes hash/cipher configuration and changes AESGCM128 for CHACHA20POLY1305
...
Updates tests accordingly
2019-12-04 17:46:07 +01:00
Sergi Delgado Segura
c679d59451
Merge branch '59-uncovered-tests'
2019-12-04 14:41:24 +01:00
Sergi Delgado Segura
5e9211d562
Some parameters were mixed up when boostraping from DB
2019-12-04 13:27:29 +01:00
Sergi Delgado Segura
c663fab788
Return non found if the locator does not fit the proper format
2019-12-04 13:27:06 +01:00
orbitalturtle
f6e3fadaae
Merge pull request #60 from orbitalturtle/client-appointment-sign
...
Client appointment sign
2019-11-28 09:07:20 -05:00