Commit Graph

7811 Commits (8fec721a5a96e41aa0ec7cc77489b0c279fab812)

Author SHA1 Message Date
Kieran Prasch c0313e8311 Handle invalid node cert during node validation 2020-09-24 20:28:31 +02:00
Kieran Prasch adf1c84c4f Additional checks and handling of invalid node certs; Unify exception class with lower-level crypto.api 2020-09-24 20:28:31 +02:00
David Núñez 4f60c61798 Don't call initialize() at init time for temp file NodeStorages
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2020-09-24 20:28:31 +02:00
David Núñez ff10f2ec55 Don't return bool on Storage initialization. It wasn't used anyway. 2020-09-24 20:28:31 +02:00
David Núñez 7d330ead8d Simplify approach to node encoders/decoders in NodeStorage & Sons 2020-09-24 20:28:31 +02:00
David Núñez 279f07c9e4 Handle invalid metadata bytes in node storage. Unit tests. 2020-09-24 20:28:31 +02:00
David Núñez c897a20d53 When restoring nodes from disk, let's just complain once if there are nodes from other domains 2020-09-24 20:28:31 +02:00
David Núñez 7a1907f0f3 Ignore restored nodes from disk that belong to a different domain 2020-09-24 20:28:31 +02:00
David Núñez d4ac7ce351 Failing test showing that currently we learn about nodes from a different domain
Demonstrates #1843
2020-09-24 20:28:31 +02:00
David Núñez fcd7edb76d Improve files organization by TemporaryFileBasedNodeStorage 2020-09-24 20:28:31 +02:00
David Núñez f86eda9e26 When serializing nodes to disk, just use bytes, not hex (the default) 2020-09-24 20:28:31 +02:00
David Núñez f42de3ae11 Some janitorial stuff 2020-09-24 20:28:31 +02:00
David Núñez 0fb2cad64a Relocate keypairs.py from datastore to crypto 2020-09-24 20:28:27 +02:00
David Núñez 064972e800 Some unit tests reorganization 2020-09-24 20:27:13 +02:00
David Núñez 14c6307645 Include test for hardcoded version 2 node metadata bytestrings 2020-09-24 20:27:13 +02:00
David Núñez 9ee834f328 Fixed length identity evidence doesn't work with federated 2020-09-24 20:27:13 +02:00
David Núñez 148ba39698 Adapt Learning Loop version 1 test due to new incompatibility with current version. 2020-09-24 20:27:13 +02:00
David Núñez 84a53a790f Allow to define a sort of "compatibility range" for LL versions: anything outside it's either from the future or the past 2020-09-24 20:27:13 +02:00
jMyles 8d18272d77 Some syntactic cleanup suggested by @michwill in comments on #1868. 2020-09-24 20:27:13 +02:00
David Núñez c223622e2f Bump versions of both Learning Loop and Character Configurations 2020-09-24 20:27:13 +02:00
David Núñez 7189d97093 Use fixed length to encode identity evidence in Ursula's bytes 2020-09-24 20:27:13 +02:00
David Núñez 4cf7dcadc3 We're done with multiple domains, for the moment.
Closes #2144. Closes #1580.
2020-09-24 20:27:13 +02:00
David Núñez 7e21280a12 Include test for hardcoded version 1 node bytestrings. See #1869 2020-09-24 20:27:13 +02:00
David Núñez 2d2a7a7cde Janitorial stuff 2020-09-24 20:27:13 +02:00
David Núñez 5a7678337f Opener for Blue Oyster Mushrooms 🍄 2020-09-24 20:27:13 +02:00
mswilkison e81dea6c48 Update contract registry for StakingInterface and router 2020-09-24 10:56:41 -05:00
K Prasch 1f5407e7d5
Merge pull request #2220 from KPrasch/signer
Trezorlib Transaction Signing
2020-09-24 08:06:54 -07:00
Kieran Prasch 11c8021363 Rework trezor transaction signing so that operations on the tx dictionary are non-mutative 2020-09-23 21:09:59 -07:00
Kieran Prasch c89fa91eef Adjust integration test for trezor signing testnet flag. 2020-09-23 15:37:25 -07:00
Kieran Prasch 7a4eff3842 Removes superfluous transaction signature verification. 2020-09-23 15:36:52 -07:00
Kieran Prasch fbda526cbd Prevent CI from importing libusb1 2020-09-23 13:28:28 -07:00
Kieran Prasch d1966a9451 Lazier evaluation of trezor derivation root 2020-09-23 13:08:23 -07:00
K Prasch da53638dfc
Merge pull request #2276 from fjarri/release-datastores
Make sure datastores are not retained in tests
2020-09-23 10:14:15 -07:00
Kieran Prasch f526b72790 SLIP44 support and EIP-155 compliance for trezor testnet derivation paths 2020-09-22 21:19:24 -07:00
Bogdan Opanchuk 7be50030aa Remove the reduced LMDB size fixture
It is not the cause of the bug, and it doesn't really test anything.
2020-09-22 16:55:37 -07:00
Bogdan Opanchuk 35944ad8de Add _finalize() method to Ursula to force releasing the datastore and call it in fixtures 2020-09-22 16:55:37 -07:00
Bogdan Opanchuk 0b001f262a Break a reference cycle in Ursula
1. Ursula -> rest_server -> rest_app -> closure -> Ursula
2. rest_app -> closure -> datastore, rest_app
2020-09-22 16:55:31 -07:00
K Prasch 272802dc17
Merge pull request #2279 from derekpierre/ursula-reqs
Document operational requirements for Worker node.
2020-09-22 13:07:18 -07:00
Derek Pierre 57390f6432
Respond to RFCs in #2279
Co-authored-by: David Núñez <david@nucypher.com>
2020-09-22 15:54:59 -04:00
derekpierre 4b1b4c0345 Be more explicit with some of ursula's requirements.
Co-authored-by: Kieran Prasch <kieran@nucypher.com>
2020-09-22 15:44:31 -04:00
derekpierre c1ea1e2f52 Remove 'static ip address' item. 2020-09-22 12:15:08 -04:00
K Prasch bee8a379f6
Merge pull request #2264 from AlexMapley/export_ursula_availability_score
Export ursula_availability_score prometheus metric
2020-09-22 08:47:36 -07:00
Al cf984adc7d
Update nucypher/utilities/prometheus/collector.py
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2020-09-22 11:08:40 -04:00
Al 9e0cfe6a52
Delete get-pip.py 2020-09-22 11:08:01 -04:00
derekpierre b8038ec873 Updates to requirements list. 2020-09-22 10:38:29 -04:00
Derek Pierre 74121c010b Apply RFCs for #2279
Co-authored-by: K Prasch <kieranprasch@gmail.com>
Co-authored-by: Arjun Hassard <arjunhassard@gmail.com>
2020-09-22 10:25:53 -04:00
derekpierre c1dadd2fbd Document operational requirements for Worker node. 2020-09-22 10:25:53 -04:00
AlexMapley 3fd1f8b267 improve logic for determining availability_score_gauge 2020-09-22 08:45:01 -04:00
AlexMapley b52e0a0d83 fix indentation for whole guage block 2020-09-22 08:27:21 -04:00
Kieran Prasch d90958827a
Bump version: 3.0.0-beta.0 → 3.0.0-beta.1 2020-09-21 14:01:01 -07:00