Commit Graph

764 Commits

Author SHA1 Message Date
Sergi Delgado Segura
b43731397c Updates teos to work with the new conf file format and redefines how objects are built
Configuration parameters are now load from a .conf file (see template.conf as an example).

The code has 3 config levels: default (teos/__init__.py), config file (<data_dir>/teos.conf) and command line.
Most of the config parameters are only modificable trough the config file for now.
The priority order is: command line, config file, default.

Objects that need config parameters are now built in teosd instead of inside other classes. Therefore teosd acts like a factory and config parameters don't have to be passed around between objects. This also implies that a lot of the object creation logic has been changed.

This should simplify unit testing.
2020-03-20 21:38:28 +01:00
Sergi Delgado Segura
6499820540 Adds ConfigLoader to handle loading configurations parameters. Switches from conf.py to .conf files 2020-03-20 21:38:22 +01:00
Sergi Delgado Segura
a60bab5f5a Merge pull request #106 from talaia-labs/fix-missing-sig-check
Adds missing inspector sig check from #103
2020-03-19 22:43:03 +01:00
Sergi Delgado Segura
045417aefc Adds missing inspector sig check from #103 2020-03-19 22:31:00 +01:00
Sergi Delgado Segura
cf80579381 Merge pull request #105 from sr-gi/road-to-oss
Road to OSS
2020-03-18 20:17:28 +01:00
Sergi Delgado Segura
89708e86b3 Improves docs 2020-03-18 20:13:50 +01:00
Sergi Delgado Segura
9d08c10416 Updates README to improve the conf file wording 2020-03-18 18:41:19 +01:00
Sergi Delgado Segura
6e06c87cf5 Adds some notes on running bitcoind and how to change networks 2020-03-18 18:33:39 +01:00
Sergi Delgado Segura
6f8af947ae Adds unhandled exception when not bneing able to connect to bitcoind 2020-03-18 18:33:39 +01:00
Sergi Delgado Segura
f5c7f23083 Makes sure cryptography dependency is at least 2.8 2020-03-18 18:33:39 +01:00
Sergi Delgado Segura
5ff33ad5cf Gets rid of sample_confs and add defaults confs 2020-03-18 18:33:38 +01:00
Sergi Delgado Segura
685c81fa40 Updates repo name to not match server-side name. Updates INSTALL 2020-03-18 18:33:34 +01:00
Sergi Delgado Segura
b200968da9 Removes snap catching until a way of doing it is found.
Currently it fails on restoring the cache due to trying to resto /snap
2020-03-18 16:26:52 +01:00
Sergi Delgado Segura
8f3834ad90 Caps 2020-03-18 16:26:52 +01:00
Sergi Delgado Segura
6d6fa9f728 Update missing readmes and circleci
- Some apps intances were not removed
- requeriment paths were wrong in circleci and some apps path needed to be removed
2020-03-18 16:26:48 +01:00
Sergi Delgado Segura
90ec15923e Move requeriments to root and creates readmes 2020-03-18 16:25:52 +01:00
Sergi Delgado Segura
5e5ff0278a Removes apps folder 2020-03-18 12:09:58 +01:00
Sergi Delgado Segura
3e1700f3de Merge pull request #103 from sr-gi/enable_user_sig
Enables user-side sig using the new signature algorithm
2020-03-18 00:26:11 +01:00
Sergi Delgado Segura
a9e7eeb7f5 Reenables keys in e2e and removes monkeypatching 2020-03-18 00:19:48 +01:00
Sergi Delgado Segura
d18944e2ba Add more contrains to load_keys and updates unit tests 2020-03-17 20:22:03 +01:00
Sergi Delgado Segura
568d72a1ad Reenables user side signing 2020-03-17 19:37:23 +01:00
Sergi Delgado Segura
66da6c6327 Missing files to rename 2020-03-17 19:37:05 +01:00
Sergi Delgado Segura
68b1089cd7 Merge pull request #102 from sr-gi/renaming
Renaming
2020-03-17 17:04:37 +01:00
Sergi Delgado Segura
984fd48df2 Changes save_pk to output compressed pks 2020-03-17 17:01:00 +01:00
Sergi Delgado Segura
7c7ff909d7 pisa -> teos 2020-03-17 15:47:38 +01:00
Sergi Delgado Segura
15126618d5 Merge pull request #99 from sr-gi/lightning-signmessage-recoverpk
Lightning signmessage recoverpk
2020-03-17 11:54:53 +01:00
Sergi Delgado Segura
0bc0426186 Changes ports for bitcoind e2e and runs it earlier to give it time to boostrap 2020-03-17 11:50:28 +01:00
Sergi Delgado Segura
58dd2c7fe7 Merge pull request #101 from sr-gi/small-fixes
Simplifies circle-ci + small fixes
2020-03-17 11:27:06 +01:00
Sergi Delgado Segura
8a0cb4bf2a Updates pisa.conf for e2e and circle-ci conf 2020-03-17 11:21:37 +01:00
Sergi Delgado Segura
23dea42bfc Adds daemon to e2e bitcoin.conf 2020-03-17 11:14:44 +01:00
Sergi Delgado Segura
de6fa5ce12 Further updates circle-ci 2020-03-17 11:11:24 +01:00
Sergi Delgado Segura
e3521188a7 Updates circleci
The sandbox won't be needed anymore, so the test env can be made simpler. Forks can be simulated via invalidateblock and reconsiderblock
2020-03-16 17:44:11 +01:00
Sergi Delgado Segura
67942450e6 Add some pending fixes (typos and tests) 2020-03-16 16:11:08 +01:00
Sergi Delgado Segura
b3672ec02c Updates hardcoded pisa_pk with compressed pk 2020-02-21 14:15:56 +01:00
Sergi Delgado Segura
39d7f66f77 Updates generate_key to be compatible with coincurve 2020-02-21 13:35:54 +01:00
Sergi Delgado Segura
429cb532b5 Updates e2e tests signature verification 2020-02-21 13:22:26 +01:00
Sergi Delgado Segura
06c51ce361 Fixes wrong test 2020-02-21 13:21:38 +01:00
Sergi Delgado Segura
ef4f6d1012 Updates cli to use the new key formats 2020-02-21 13:21:13 +01:00
Sergi Delgado Segura
1d6af6d193 Adds new dependencies 2020-02-21 13:19:21 +01:00
Sergi Delgado Segura
1837baed2a Updates unit tests to use the new key formats 2020-02-21 13:18:56 +01:00
Sergi Delgado Segura
3db5012145 Updates Watcher docs 2020-02-21 13:17:49 +01:00
Sergi Delgado Segura
6ed6d559fb Updates inspector to work with the new public key format and verification methods. Includes unit tests 2020-02-21 13:16:11 +01:00
Sergi Delgado Segura
1a32686bc8 Adds unit tests for new Cryptographer functions and updates old ones 2020-02-21 13:14:26 +01:00
Sergi Delgado Segura
b712e3df0c Changes sign/verify functions to match the ones used by lnd and c-lightning
- Replaces cryptography for coincurve for the signature / recovery operations
- Fixes return types of ecrypt, decrypt to be str (gets rid of rtype)
2020-02-21 13:11:06 +01:00
Sergi Delgado Segura
99a0add1f6 Merge pull request #97 from sr-gi/last-fixes-before-alpha
Last fixes before alpha
2020-02-17 15:56:04 +01:00
Sergi Delgado Segura
3cfe3edfa9 Typos and PISA-> teos 2020-02-17 15:52:10 +01:00
Sergi Delgado Segura
6970e74da5 Fixes outdated messages 2020-02-17 14:16:58 +01:00
Sergi Delgado Segura
94eb763bac PISA server -> teos/tower/the eye of satoshi 2020-02-17 13:27:14 +01:00
Sergi Delgado Segura
3ee8d9f2cb Fixes common test imports 2020-02-17 13:06:19 +01:00
Sergi Delgado Segura
f55fe17f36 Merge pull request #96 from sr-gi/fixes-before-alpha
Fixes before alpha
2020-02-17 12:57:34 +01:00