mirror of https://github.com/nucypher/nucypher.git
Modify CLI entry point for revocation
parent
5b4f3da3d1
commit
47ee828de7
|
@ -29,7 +29,6 @@ from nucypher.config.constants import GLOBAL_DOMAIN
|
|||
@click.option('--registry-filepath', help="Custom contract registry filepath", type=EXISTING_READABLE_FILE)
|
||||
@click.option('--bob-encrypting-key', help="Bob's encrypting key as a hexideicmal string", type=click.STRING)
|
||||
@click.option('--bob-verifying-key', help="Bob's verifying key as a hexideicmal string", type=click.STRING)
|
||||
@click.option('--policy-encrypting-key', help="The Policy encrypting key derived from a label", type=click.STRING)
|
||||
@click.option('--label', help="The label for a policy", type=click.STRING)
|
||||
@click.option('--m', help="M-Threshold KFrags", type=click.INT)
|
||||
@click.option('--n', help="N-Total KFrags", type=click.INT)
|
||||
|
@ -56,7 +55,6 @@ def alice(click_config,
|
|||
dry_run,
|
||||
bob_encrypting_key,
|
||||
bob_verifying_key,
|
||||
policy_encrypting_key,
|
||||
label,
|
||||
m,
|
||||
n):
|
||||
|
@ -181,7 +179,11 @@ def alice(click_config,
|
|||
return ALICE.controller.grant(request=grant_request)
|
||||
|
||||
elif action == "revoke":
|
||||
return ALICE.controller.revoke(policy_encrypting_key=policy_encrypting_key)
|
||||
revoke_request = {
|
||||
'label': label,
|
||||
'bob_verifying_key': bob_verifying_key
|
||||
}
|
||||
return ALICE.controller.revoke(request=revoke_request)
|
||||
|
||||
elif action == "destroy":
|
||||
"""Delete all configuration files from the disk"""
|
||||
|
|
Loading…
Reference in New Issue