derekpierre
778c018593
Initial implementation of Alice.get_ursulas for Porter.
2021-07-26 15:14:42 -04:00
derekpierre
8de665a955
Initial unit tests for fields.
2021-07-26 15:14:42 -04:00
Kieran R. Prasch
6192c34c3d
Renames relayer -> publisher.
2021-07-06 14:43:35 -07:00
Kieran R. Prasch
8f8b79aa08
Responding to RFCs in PR #2687 .
2021-07-06 14:43:31 -07:00
Kieran Prasch
c915a1b1d3
Use umbral adapter everywhere. Fixes straggler uses of umbral 0.1.x
2021-07-03 18:51:07 -07:00
Bogdan Opanchuk
7642300fe0
Rebase fixes for rebased-chili-limes ( #28 )
...
* Fix PRETask serialization
* Use a constant for encrypted kfrag length
* Fix argument order in Signature.verify()
* Remove a too brittle check in test_bob_handles_frags
What exactly are we ensuring here? If we want to check that the cfrag is fine,
we need to use it for decryption.
* Remove an unnecessary check
The result of `reencrypt()` is verified by default.
* Re-raise Umbral decryption errors as DecryptionFailed
* Fix an argument of _filter_work_orders_and_capsules()
* Fix an assertion in test_federated_grant_and_revoke
Assertion fails because now UmbralMessageKit has __len__,
so a bool() call is equivalent to len() == 0
(which it is, since there are no cfrags attached).
2021-07-03 18:48:26 -07:00
Kieran Prasch
4e7ea984f0
Post-rebase integration with PR #2612 and Umbral 0.2.x
2021-07-03 18:48:24 -07:00
jMyles
7c4cd47844
Partial restoration of the work to remove IndisputableEvidence and related concepts; it had been added back as part of a rebase to create a linear history.
2021-07-03 18:46:50 -07:00
jMyles
4c9c3d23d4
Now using both versioning and branding for maps.
2021-07-03 18:46:37 -07:00
Kieran Prasch
de17e60839
TMap authorship alternate constuctor
2021-07-03 18:46:37 -07:00
Kieran Prasch
e13fae0526
Combating freefriders and evil Bobs with a KFrag writ authorization.
2021-07-03 18:46:36 -07:00
Kieran Prasch
a22b403a08
Partial tets update for modified map and order handling; Continue handling of publisher/authorizer keys.
2021-07-03 18:40:10 -07:00
David Núñez
9837dde869
Include encrypted KFrag in WorkOrder serialization
2021-07-03 17:50:43 -07:00
David Núñez
0f8ff08ec9
Let's keep the arrangement IDs in the TreasureMap for the moment
...
Careful, don't scare the unit tests...
2021-07-03 17:50:43 -07:00
David Núñez
cdb825bdbc
Bob includes the encrypted KFrag in the WorkOrder, which we previously used in Ursula's side to get the Kfrag from the re-encryption request
2021-07-03 17:50:43 -07:00
David Núñez
7a090c19f3
Instead of storing arrangement IDs in the TMap, stored encrypted KFrags
2021-07-03 17:48:44 -07:00
David Núñez
02608af55a
How come we didn't have a basic unit test for TreasureMaps?
2021-07-03 17:47:34 -07:00
Kieran R. Prasch
669dd79dd7
Use KDF from umbral for keystore power derivations.
2021-07-02 20:00:06 -07:00
Kieran R. Prasch
7ed52647f3
Use crypto.passwords module for handling password key derivations.
2021-06-30 16:49:31 -07:00
Kieran Prasch
8a54bd7e6d
Post rebase cleanup for PR #2612 ; Umbral 0.2.x compatibility.
2021-06-30 15:14:10 -07:00
Kieran Prasch
0d3780466b
Respond to RFCs in PR #2701
2021-06-28 14:33:31 -07:00
Kieran R. Prasch
4f7bdf5c46
tests respect the Keystore API
2021-06-28 14:33:31 -07:00
Kieran R. Prasch
e3868df4d1
Handle TLS power derivation form keystore.
2021-06-28 14:33:31 -07:00
Kieran Prasch
82e81fc710
Deterministic power derivation from keystore. Iterating on keystore drafting.
2021-06-28 14:33:31 -07:00
Kieran R. Prasch
11a630066e
Further deprecation of nucypher.crypto.api.
2021-06-28 14:33:31 -07:00
Kieran R. Prasch
6aef077172
bulk renaming of Keyring -> Keystore
2021-06-28 14:33:31 -07:00
Kieran R. Prasch
d024018c3c
Adapts keyring unit tests for deterministic nucypher keystore.
2021-06-28 14:33:31 -07:00
Bogdan Opanchuk
6090a755b0
Gate the choice of Umbral implementation in a single file
2021-06-22 18:31:08 -07:00
Bogdan Opanchuk
15333ddca2
Dissolve umbral_adapter
2021-06-17 14:38:51 -07:00
Bogdan Opanchuk
e6fcdbbff6
Minimal fixes to make CI pass, using an adapter for Umbral
2021-06-17 14:38:51 -07:00
derekpierre
e61cec703a
Fix stray prometheus imports/tests that should only be performed when prometheus_client is installed; prometheus is an optional dependency.
2021-05-21 14:27:33 -04:00
Bogdan Opanchuk
26076b1d98
Remove IndisputableEvidence and related functions and tests
2021-05-18 13:14:04 -07:00
piotr-roslaniec
66ad917b28
Merge pull request #2657 from piotr-roslaniec/teacher-fallback#2481
...
Fallback chain of teacher nodes
2021-04-29 10:17:19 +02:00
Piotr Roslaniec
c98fbc43cd
Implicitly remove whitespaces from character nicknames
2021-04-28 11:31:59 +02:00
Piotr Roslaniec
9669280639
Test fallback behaviour
2021-04-22 12:36:37 +02:00
Piotr Roslaniec
58f37da94a
Move TEACHER_NODES to nodes.py
2021-04-21 18:04:51 +02:00
KPrasch
74c986e53b
Merge branch 'main' into dao-proposal-1
2021-04-14 08:16:40 -07:00
KPrasch
fed186975b
Merge pull request #2628 from piotr-roslaniec/nickname-delim#2471
...
Change nickname delimiter in card filename
2021-04-08 13:29:57 -07:00
Piotr Roslaniec
ec757bf4a9
Use constant for loopback address
2021-04-08 13:33:34 +02:00
Piotr Roslaniec
8edd343ab8
Test qr code output
2021-04-08 11:57:02 +02:00
Piotr Roslaniec
f43ad5d055
Change nickname delineation
2021-04-08 11:56:39 +02:00
vzotova
3136a97aa6
Fix other tests
2021-03-22 11:37:27 -07:00
Kieran Prasch
ed032de9e8
Translating economic parameters to handle 7 day periods.
2021-03-22 11:37:27 -07:00
derekpierre
305bf0a7fb
Added unit and integration tests for keyring.
2021-02-18 18:08:40 -08:00
derekpierre
cbe03d9dc1
Add unit tests for (de)serialization if keys from/to files.
2021-02-18 18:08:40 -08:00
derekpierre
6f25d57971
Better organize serialization/deserialization functions.
...
Use loopback address functions.
Respond to RFCs for #2536 .
2021-02-18 18:08:40 -08:00
derekpierre
ab30f1f497
Improve serialization/deserialization logic of private keys.
2021-02-18 18:07:43 -08:00
Bogdan Opanchuk
4de9b91d2a
Refactor FleetSensor
2021-02-16 22:45:55 -08:00
K Prasch
6b2a9ecdbb
Merge pull request #2533 from cygnusv/fast-unit
...
Fixes to unit tests. Fix for #2484
2021-01-21 10:26:58 -08:00
David Núñez
0b2eb927be
We were incorrectly using net_version to identify the EthereumClient chain in certain places
...
Fixes #2484
2021-01-20 13:05:23 +01:00