Sergi Delgado Segura
e2ca226b11
Last formatting details troughout the codebase
2019-12-13 18:13:29 +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
f287bdf073
Fixes returns
2019-12-10 12:02:25 +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
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
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
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
f0150ce585
Removes hash/cipher configuration and changes AESGCM128 for CHACHA20POLY1305
...
Updates tests accordingly
2019-12-04 17:46:07 +01:00
Sergi Delgado Segura
2b1640ea86
Simplifies Inspector using Appointment.from_json() constructor
2019-11-07 16:56:30 +00:00
Sergi Delgado Segura
20f296c9d4
Reformats code to match code guidelines
2019-11-07 15:47:35 +00:00
Sergi Delgado Segura
30159399f0
Adds serialize method
...
After adding the triggered flag we can not just use to_json to serialize since the two data blobs won't match. This also sets ground towards having a generalized serialization function.
2019-11-07 15:08:05 +00:00
Sergi Delgado Segura
99bda73eff
Applies fixes after PR review
2019-11-07 15:07:58 +00:00
Sergi Delgado Segura
01c9f8f16c
Adds triggered flag to appointment
2019-11-05 19:12:33 +00:00
Sergi Delgado Segura
276c0ae0b3
Fixes Appointment.from_dict()
2019-11-02 21:16:19 -07:00
Sergi Delgado Segura
f61474216c
Fixes and tests updates
...
Updates tests so they run with the db_manager and fixes some bugs introduced in d7d42c9.
2019-10-28 14:49:40 -07:00
Sergi Delgado Segura
162de92026
Adds class method to create from dict and on_sync method
2019-10-28 14:40:42 -07:00
Salvatore Ingala
e71c014535
Sorting keys and removing whitespaces in Appointment.to_json
2019-10-21 11:07:58 +08:00
Salvatore Ingala
7c1d8b69c7
Changed to_json to to_dict in Appointment and Job; added to_json to Appointment to actually return a string
2019-10-17 09:59:34 +08:00
Salvatore Ingala
99db9a29ad
Added signatures to appointment
2019-10-17 09:59:29 +08:00
Sergi Delgado Segura
8b62ff9e56
Update some comments/todos/discuss
2019-10-09 17:38:15 +01:00
Sergi Delgado Segura
ab72c71039
Adds appointment unit test
2019-10-09 15:19:33 +01:00
Sergi Delgado Segura
e9832e4408
More clean up
2019-10-03 11:47:07 +01:00
Sergi Delgado Segura
93e23e769f
Code clean up
...
Deletes debug/logging pair. Defines logging and bitcoin_cli as system-wide variables
2019-10-02 17:03:43 +01:00
Sergi Delgado Segura
1cde4a2a11
refactors project structure
2019-08-12 13:24:04 +01:00