Bogdan Opanchuk
ad2ad8e3c0
Make HRAC a class and use it as a policy ID
2021-08-19 17:06:45 -04:00
Bogdan Opanchuk
509b8c1bfc
Split treasure maps into decrypted and encrypted
2021-08-19 17:06:45 -04:00
Bogdan Opanchuk
5b5cd4bd84
Use HRAC as treasure map ID at all times instead of just in the blockchain case
2021-08-19 17:06:45 -04:00
Bogdan Opanchuk
2be3d727d5
Rename TreasureMap field and datastore model to EncryptedTreasureMap
2021-08-19 17:06:45 -04:00
KPrasch
ed67bbcd7b
Merge pull request #2777 from KPrasch/main
...
Relock Dependencies
2021-08-18 15:43:09 -07:00
Kieran R. Prasch
1f7ee94489
Update eth_account Transaction API imports.
2021-08-17 15:34:44 -07:00
Bogdan Opanchuk
e5c0bb079e
Fix the remainders of Alice/Publisher separation
2021-08-12 16:32:02 -07:00
Piotr Roslaniec
662bc34439
Use Path methods instead of os module
2021-08-06 18:10:22 +02:00
Piotr Roslaniec
6a270c1713
Use pathlib
2021-08-06 18:10:20 +02:00
derekpierre
e83128fd91
One potential solution for contextualizing federated vs non-federated treasure maps provided as bytes in the `/publish_treasure_map` endpoint.
...
The context information is provided either at construction time of the TreasureMap field, or via the parent Schema context.
2021-07-26 15:14:42 -04:00
Kieran Prasch
81ca745bfa
Fixes incorrect splitter in map versioning and grant test assertion.
2021-07-03 18:48:54 -07:00
jMyles
39d322909d
Standardizing message signatures sizes in logic as a constant.
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
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
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
11052a6124
DecentralizedTreasureMaps were renamed SignedTreasureMaps a while ago
2021-07-03 17:47:32 -07:00
Kieran R. Prasch
6aef077172
bulk renaming of Keyring -> Keystore
2021-06-28 14:33:31 -07:00
Bogdan Opanchuk
15333ddca2
Dissolve umbral_adapter
2021-06-17 14:38:51 -07:00
Piotr Roslaniec
c640345ea4
Fix queries failing silently
2021-04-15 08:05:11 +02:00
Piotr Roslaniec
269c7c2fc2
Refactor queries into a separate file
2021-04-15 08:05:11 +02:00
vzotova
3136a97aa6
Fix other tests
2021-03-22 11:37:27 -07:00
Bogdan Opanchuk
c0a303a783
Help nucypher-monitor get the info it needs
2021-03-02 18:20:48 -08:00
Kieran Prasch
ba464989ba
Actors accept a transacting power or an address but not both + Cleanup.
2021-02-26 13:38:37 -08:00
Kieran Prasch
7e07bd267e
Handle injected transacting power in tests.
2021-02-26 13:38:37 -08:00
Kieran Prasch
0b164b6df7
Test adjustments and code touch ups
2021-02-18 18:07:43 -08:00
Kieran Prasch
c6e402a12a
Handle Vladimir stamp substantiation and missing asserts in test.
2021-02-18 18:07:41 -08:00
Kieran Prasch
37774897bc
Understand Ursula.run as the coordinated single point of service startup.
2021-02-18 18:06:31 -08:00
Bogdan Opanchuk
4de9b91d2a
Refactor FleetSensor
2021-02-16 22:45:55 -08:00
damon c
e907a598a2
Merge pull request #2462 from KPrasch/automagic
...
IP address checks on worker startup
2021-01-14 20:47:32 -08:00
Bogdan Opanchuk
a2b99daa1d
Merge proposals and enactment into a single method, return EnactedPolicy
2021-01-14 11:19:35 -08:00
Bogdan Opanchuk
de0f933118
Make Arrangement stateless and get rid of BlockchainArrangement
2021-01-14 11:19:35 -08:00
Bogdan Opanchuk
24d5e3a5ec
Remove PolicyCredential
...
It isn't used anywhere
2021-01-14 11:19:35 -08:00
Kieran R. Prasch
2daa9b499d
Closes #2424
2021-01-12 13:10:15 -08:00
Kieran R. Prasch
24f6b4ce5e
Expand alice confguration options to include policy storage and stay current with signed tmaps
2020-12-09 00:11:13 -08:00
Kieran R. Prasch
1580c5f89c
Extract Identity entities
2020-12-08 23:55:09 -08:00
jMyles
c4786f551a
No longer are there 'serving' domains and 'learning' domains. Everybody just has a domain.
2020-11-03 18:13:15 -07:00
K Prasch
9707ac4b8b
Merge pull request #2347 from fjarri/nicer-status-page
...
Nickname refactoring & changing nickname symbols to more common ones
2020-10-13 12:09:20 -07:00
tuxxy
35b10ec62d
Handle 409 response in receive_treasure_map
2020-10-13 10:01:37 +02:00
tuxxy
38d0fccefd
Truncate hracs to 16 bytes
2020-10-13 10:01:37 +02:00
tuxxy
c965f72c2e
Fix DoS vector on nodes through map storage
2020-10-13 10:01:37 +02:00
jMyles
94b489aa77
This test makes more sense if it just shows that no more than one map was saved, because the 'sucker' might already have had the 'legit' map.
2020-10-13 10:01:37 +02:00
jMyles
41b39bfa7b
Amonia performs a pay-in-advance variant of The Wicker Man attack.
2020-10-13 10:01:37 +02:00
tuxxy
86c2744dae
Add test_bob_retrieves_treasure_map_from_decentralized_node
2020-10-13 10:01:37 +02:00
tuxxy
828a630c0e
Remove treasure_map_id param from receive_treasure_map API endpoint
...
Fix up logic and add tests. Additionally, skip test_mass_treasure_map_placement
2020-10-13 10:01:37 +02:00
Bogdan Opanchuk
725eae1738
Pass nicknames around as a class instead of unstructured data
2020-10-12 16:11:01 -07:00
derekpierre
5552a84176
Rollback py-solc-x version and clean up imports.
2020-09-17 13:26:38 -07:00
jMyles
1415843f89
Treasuremap: Decentralized -=> Signed.
2020-09-05 11:46:34 -07:00
jMyles
24bc71be6e
Give Bob a chance to hit seednodes before bailing.
2020-08-27 13:16:36 -07:00
jMyles
6498992f61
Deduplicating test; moving json validation utils to utils.
2020-08-24 09:42:15 -07:00
jMyles
a2b04a00a1
Starting Bob's learning loop here (which is in keeping with reality) is needed now that we don't hardcode Bob's fixture nodes.
2020-08-10 12:52:31 -07:00
jMyles
5f3eca5b4b
Divide cli lifecycle tests into federated and decentralized in order to keep Ursula cache separated.
2020-08-10 12:52:31 -07:00
jMyles
a0db5ffb15
Moving federated tests into their own module to keep the cache cleaner.
2020-08-10 12:52:30 -07:00
jMyles
fc3e105e54
Decentralized Alice controller test needs, you guessed it, DecentralizedTreasureMap.
2020-08-10 12:42:17 -07:00
jMyles
8f248100ff
Amonia needs to remember not to publish TreasureMaps, lest her gig being discovered too soon.
2020-08-10 12:42:17 -07:00
jMyles
1a20bbb151
Including a fake signature for the test.
2020-08-10 12:42:17 -07:00
jMyles
5e494a9101
Vlad's APIs are consistent with the real deal again.
2020-08-10 12:39:59 -07:00
tuxxy
f5a7577290
Fix tests with new datastore changes
...
Use a unique temp directory for each blockchain_ursula and fix the flunky test query
Fix test_decentralized_grant test
Catch RecordNotFound errors in test_freerider_attacks
Provide a db_filepath for the test_collect_rewards_integration Ursula
Add unique temp directory for Ursula in test_collect_rewards_integration
2020-08-10 15:38:58 +02:00
tuxxy
cced32aa71
Store Workorders under a random ID, and catch DatastoreTransactionError in revoke
...
Fix typo in __prune_arrangements and catch RecordNotFound
Fix typo in docstring for build_docs
Remove reference to old datastore in test_freerider_attacks
2020-08-10 15:38:13 +02:00
tuxxy
52038e36dc
Create a MockLMDBEnv w/ fixture and fix up some tests
...
Patch the PolicyArrangement model to fix discovery phase tests
2020-08-10 15:38:12 +02:00
vzotova
53674d7828
Changes `Stake` class to read-only representation of sub-stake
2020-07-30 22:45:57 +03:00
vzotova
073cbf345e
Refactor sub-stake status and selecting sub-stake
2020-07-09 16:33:25 +03:00
Kieran Prasch
5909c37dd1
Apply API and interface updates to for enrico file handling.
2020-06-18 08:55:21 -07:00
damon
1409bb2a61
more test fixes message->plaintext
2020-06-17 11:33:24 -07:00
Kieran Prasch
28cce2fccc
Reorganize tests into multiple suites.
2020-05-27 14:11:25 -07:00