mirror of https://github.com/nucypher/nucypher.git
Respond to RFCs in PR #2808
parent
1fe16c6735
commit
47d99a9f62
|
@ -392,7 +392,7 @@ class Alice(Character, BlockchainPolicyAuthor):
|
|||
ursula = self.known_nodes[node_id]
|
||||
revocation = policy.revocation_kit[node_id]
|
||||
try:
|
||||
response = self.network_middleware.revoke_node(ursula, revocation)
|
||||
response = self.network_middleware.request_revocation(ursula, revocation)
|
||||
except self.network_middleware.NotFound:
|
||||
failed[node_id] = (revocation, self.network_middleware.NotFound)
|
||||
except self.network_middleware.UnexpectedResponse:
|
||||
|
|
|
@ -203,8 +203,8 @@ class RestMiddleware:
|
|||
backend=default_backend())
|
||||
return certificate
|
||||
|
||||
def revoke_node(self, ursula, revocation):
|
||||
# TODO: Implement offchain revocation
|
||||
def request_revocation(self, ursula, revocation):
|
||||
# TODO: Implement offchain revocation #2787
|
||||
response = self.client.post(
|
||||
node_or_sprout=ursula,
|
||||
path=f"revoke",
|
||||
|
|
|
@ -43,7 +43,7 @@ def test_decentralized_grant(blockchain_alice, blockchain_bob, blockchain_ursula
|
|||
treasure_map = blockchain_bob._decrypt_treasure_map(policy.treasure_map,
|
||||
policy.publisher_verifying_key)
|
||||
|
||||
# The number of actually destinations is exactly equal to shares.
|
||||
# The number of actual destinations is exactly equal to shares.
|
||||
assert len(treasure_map.destinations) == shares
|
||||
|
||||
# Let's look at the destinations.
|
||||
|
|
Loading…
Reference in New Issue