Commit Graph

89 Commits

Author SHA1 Message Date
Sergi Delgado Segura
defe946b2c Adds a more verbose return for server errors 2020-02-17 11:18:32 +01:00
Sergi Delgado Segura
f6d95514aa Adds alpha release restrictions to PISA_API.md 2020-02-16 17:57:52 +01:00
Sergi Delgado Segura
605726751a Updates README with 2kib limitation for encrypted_blob 2020-02-16 17:55:40 +01:00
Sergi Delgado Segura
e1f14fddc1 Fixes typos and updates variable names in cli/PISA_API 2020-02-14 16:47:25 +01:00
Sergi Delgado Segura
e9a9ccf440 Fixes punctuation and typos on cli/README 2020-02-14 16:40:02 +01:00
Sergi Delgado Segura
244c04cb0d Fixes some typos 2020-02-14 16:31:04 +01:00
Salvatore Ingala
1a91a68d52 typo, bash_rc ==> bashrc 2020-02-14 15:21:58 +00:00
Sergi Delgado Segura
0fd74bc618 Updates README with alpha start/end time restrictions 2020-02-14 14:40:46 +01:00
Sergi Delgado Segura
1471e89855 Adds exception handling for no schema and timeout 2020-02-13 19:24:22 +01:00
Sergi Delgado Segura
452dbb6bee Updates check_appointment to get_appointment and justice to penalty 2020-02-13 19:02:30 +01:00
Sergi Delgado Segura
43975df894 Changes cli to be protocol agnostic and defines https on config file 2020-02-13 19:00:15 +01:00
Sergi Delgado Segura
3ba5db533d Fixes json parsing of None when no json was postesd to the API
h/t @yahgwai for finding this.
2020-02-13 18:42:00 +01:00
Sergi Delgado Segura
f24bb75e07 Fixes formatting issues in cli/README 2020-02-13 17:45:43 +01:00
Chris Buckland
f00e4562e6 Reformatted json appointment block 2020-02-13 17:30:04 +01:00
Sergi Delgado Segura
adf883868e Improves config section 2020-02-13 16:42:29 +01:00
Sergi Delgado Segura
e2e27d3e9c Adds config file section to install 2020-02-13 16:34:22 +01:00
Chris Buckland
d8977acd2d Typo 2020-02-13 16:34:19 +01:00
Sergi Delgado Segura
02e159faac Moves EncryptedBlob to common 2020-02-13 16:32:51 +01:00
Sergi Delgado Segura
6e40938733 Updates PISA server endpoint 2020-02-13 13:35:59 +01:00
Sergi Delgado Segura
a655eb8b98 Adds module info to INSTALL docs 2020-02-13 13:35:02 +01:00
Sergi Delgado Segura
e6187fc657 Replaces missing occurrences of pisa_cli for wt_cli 2020-02-12 10:40:16 +01:00
Sergi Delgado Segura
afcada03bf Improve docs 2020-02-11 20:24:03 +01:00
Sergi Delgado Segura
d447debe54 Temporal fix for Cryptographer logs. Close #91 2020-02-11 20:22:51 +01:00
Sergi Delgado Segura
22ded55990 Renames pisa_cli to wt_cli 2020-02-11 18:37:12 +01:00
Sergi Delgado Segura
dd232c678a Updates default cli.log name 2020-02-10 16:31:51 +01:00
Sergi Delgado Segura
5a49a93710 Improves cli
- Improves modularity
- Adds missing exceptions
- Adds docstrings
- Simplifies some method names
2020-02-10 16:31:50 +01:00
Sergi Delgado Segura
a84d753c4a Updates generate_key to accept output directory. It stores the keys in the current dir by default. 2020-01-23 20:56:42 +01:00
Sergi Delgado Segura
5c75b1f40d Removes Logger dependency from setup_data_folder
Logger was only used to log when a new folder was created, and was making that the setup needed to be done on the main of pisad and cli instead of __init__, which seems a better fit
2020-01-23 20:12:21 +01:00
Sergi Delgado Segura
836048c54d Same as 00a989e1b2 but for the cli 2020-01-23 18:31:47 +01:00
Sergi Delgado Segura
c1ad1a4924 Updates cli to run with config file 2020-01-23 16:30:09 +01:00
Sergi Delgado Segura
245d5b49f3 Updates config files
Removes unused values from pisa config file and adds cli config file
2020-01-23 16:23:07 +01:00
Sergi Delgado Segura
200304cbce Remove unnecessary tailing dots from some log messages 2020-01-21 12:14:51 +01:00
Sergi Delgado Segura
568418a18e Simplifies pisa_cli.post_data_to_add_appointment_endpoint
The appointment endpoint was a parameter even though the method is only used to send data the a single endpoint. The json data is only used inside the method, so it can be computed there too.
2020-01-21 12:07:05 +01:00
Sergi Delgado Segura
396c56e5db Adds name parameter to generate_keys so the name can be chosen from terminal 2020-01-20 17:02:25 +01:00
Sergi Delgado Segura
4eb55eaacc Raises exception on missing cli keys
load_key_file_data was returning False on FileNotFound but get_pk was expecting an exception
2020-01-20 16:19:45 +01:00
Sergi Delgado Segura
90e1245a84 Fixes some bugs based on E2E testing 2020-01-16 17:08:44 +01:00
Sergi Delgado Segura
3d4ed28c8b Fixes wrong log messase 2020-01-15 15:41:57 +01:00
Turtle
3775b78500 Fix filename typo in cli README 2020-01-15 03:35:34 -05:00
Turtle
40d7ca1912 Refactor add_appointment cli code 2020-01-15 03:35:31 -05:00
Sergi Delgado Segura
5c585a7a02 Refactors code to use appointment from common based on f4a1e34e2f4d75226c7e313b83ff5ae06c8c89ca 2019-12-17 16:22:23 +01:00
Sergi Delgado Segura
1184b4648a Fixes logs and removes redundant tailing dots 2019-12-16 19:45:30 +01:00
Sergi Delgado Segura
a9df67d787 Properly fromats console logs 2019-12-16 19:44:50 +01:00
Sergi Delgado Segura
77b191dde2 Moves Logger to common 2019-12-16 14:15:30 +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
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
b4197aa5bb Replaces hardcoded 16/32 for LOCATOR lengths 2019-12-05 11:26:58 +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
Turtle
79d986677d Client signs appointment before sending it to server 2019-11-26 23:21:00 -05:00