Commit Graph

9469 Commits (2d1b37f9aa88845f4cf087f0f9dacb6f8bb0c11a)

Author SHA1 Message Date
derekpierre 1fd7f2affd Ensure that porter schema input parameters have 'load_only' set to True. 2021-07-26 15:14:42 -04:00
derekpierre b126fbcecb Initial dump of the idea for Porter Schema definition. 2021-07-26 15:14:42 -04:00
derekpierre 589ddff4de Initial refactoring of "character control"; abstract what is now "character control" into a general "base control" from which "character control" can sub-class. 2021-07-26 15:14:42 -04:00
Derek Pierre b8ac12cb23
Merge pull request #2759 from derekpierre/update-cache
Increment cache version to force rebuild of dependencies.
2021-07-26 12:17:38 -04:00
Derek Pierre 1ae99e1350
Merge pull request #2762 from derekpierre/no-bytes
Don't put bytes directly into log - instead write as hex
2021-07-26 12:16:34 -04:00
derekpierre 6de7f9ecb7 Add newsfragment for #2762. 2021-07-26 11:32:22 -04:00
derekpierre 1ecaaa52b6 Put a hex string representation of current_teacher in the logs instead of bytes; bytes cause formatting exceptions. 2021-07-26 09:35:55 -04:00
KPrasch 871d0c9f65
Merge pull request #2753 from derekpierre/median-int
Ensure that gas price used for transactions is an int
2021-07-21 12:58:19 -07:00
derekpierre e02f41eac3 Increment cache version to force rebuild of dependencies. 2021-07-16 10:36:02 -04:00
derekpierre 34273bd8c7 Add newsfragment for #2753. 2021-07-15 12:27:57 -04:00
derekpierre a2f8b37d95 Ensure that median gas price returns an int. 2021-07-15 12:21:48 -04:00
KPrasch a95e236b75
Merge pull request #2748 from fjarri/make-stamp-a-stamp
Make `NodeSprout.stamp` be of type `SignatureStamp` and not `bytes`
2021-07-14 13:06:13 -07:00
Bogdan Opanchuk 22083267a8 Add a newsfragment for #2748 2021-07-13 18:00:25 -07:00
Bogdan Opanchuk 2b46cb7e27 Make `NodeSprout.stamp` be of type `SignatureStamp` and not `bytes` 2021-07-13 18:00:24 -07:00
KPrasch 3a299f6893
Merge pull request #2744 from fjarri/worker-pool-errors
More informative `WorkerPool` errors
2021-07-13 16:21:16 -07:00
Bogdan Opanchuk b03d029af0 Add a newsfragment for #2744 2021-07-12 16:24:35 -07:00
Bogdan Opanchuk c13b8213ec Add a more informative message to WorkerPool.OutOfValues/TimedOut 2021-07-12 16:24:35 -07:00
KPrasch 708616fe45
Merge pull request #2687 from nucypher/chili-con-carne
[EPIC] Chili: TreasureMaps con KFrags
2021-07-12 14:38:31 -07:00
Kieran R. Prasch 4c03c626f7 Respond to RFCs in PR #2687 Pt. II. 2021-07-06 15:26:36 -07: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 R. Prasch 3367ac5a50 Post-rebase cleanup for PR #2701 2021-07-03 19:05:24 -07:00
Kieran R. Prasch 51705f81cc Newsfragment for PR #2687. 2021-07-03 18:51:08 -07:00
Bogdan Opanchuk 96749aa9cd POLICY_ID_LENGTH has been moved 2021-07-03 18:51:08 -07:00
Bogdan Opanchuk 2fa40c9685 Fix TreasureMap splitter dict population bug
__new__ is not called quickly enough, so in some tests
the _splitters is inaccessible
2021-07-03 18:51:08 -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
Kieran Prasch 81ca745bfa Fixes incorrect splitter in map versioning and grant test assertion. 2021-07-03 18:48:54 -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 7409732a04 Updating docstring and return annotation, and sharpening version check. 2021-07-03 18:46:50 -07:00
jMyles 39d322909d Standardizing message signatures sizes in logic as a constant. 2021-07-03 18:46:50 -07:00
jMyles 7a2d8be111 Removing hardcoded '2' in favor of canonical value. 2021-07-03 18:46:50 -07:00
jMyles fe30ffb199 Removing Tread Certainty. 2021-07-03 18:46:50 -07:00
jMyles b341a139ea Changing gas augmentation - this is nearly meaningless since we'll brush it up before ever doing another WorkLock anyway. 2021-07-03 18:46:50 -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 2c2ca64016 Supporting multiple versions by value at the spec level. 2021-07-03 18:46:50 -07:00
jMyles b1ff1077cd Seems like we want to revoke the same policy that's made in this test here. 2021-07-03 18:46:50 -07:00
jMyles 993a4265c7 Needs to be 65 bytes, not 64. 2021-07-03 18:46:50 -07:00
jMyles d1d3791b9a Changing things up a little so that SignedTreasureMap gets the correct splitter for its version. 2021-07-03 18:46:50 -07:00
jMyles 196ef069f7 Revoking requires transacting_power - not sure how this ever worked. 2021-07-03 18:46:50 -07:00
jMyles 10b2ad52ff Getting splitter by value instead - I guess this is what we'll do now? 2021-07-03 18:46:37 -07:00
jMyles 4c9c3d23d4 Now using both versioning and branding for maps. 2021-07-03 18:46:37 -07:00
jMyles adb1150812 Using versioning tooling in VersionedBytestringKwargifier instead of repeating it locally. 2021-07-03 18:46:37 -07:00
jMyles c81839f392 Constructing splitter dict in __new__ - is this the way? 2021-07-03 18:46:37 -07:00
jMyles b7b1bf6fe3 Adding old versioning logic. Getting a little freaky here. 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 722f2db614 map versioning 2021-07-03 18:46:37 -07:00
Kieran Prasch 94217c43d3 tests passing 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 b60749d40e Nuanced handling of payment verification; Use HRAC as the authoritative method of verifying payment, deprecates usage of txhash completely. 2021-07-03 18:42:40 -07:00