Some code cleanup.

pull/3123/head
derekpierre 2023-05-18 14:59:44 -04:00
parent 52065dcb04
commit ac0296037d
3 changed files with 6 additions and 4 deletions

View File

@ -5,7 +5,7 @@ from typing import List, Optional, Tuple, Union
import maya
from eth_typing import ChecksumAddress
from ferveo_py import AggregatedTranscript, Ciphertext
from ferveo_py import PublicKey as FerveoPublicKey
from ferveo_py import DkgPublicKey as FerveoPublicKey
from ferveo_py import Validator
from hexbytes import HexBytes
from nucypher_core import (

View File

@ -43,7 +43,7 @@ _SIGNING_INFO = __INFO_BASE + b"signing"
_DECRYPTING_INFO = __INFO_BASE + b"decrypting"
_DELEGATING_INFO = __INFO_BASE + b"delegating"
_RITUALISTIC_INFO = __INFO_BASE + b"ritualistic"
_CBD_DECRYPTING_INFO = __INFO_BASE + b"cbd_decrypting"
_THRESHOLD_REQUEST_DECRYPTING_INFO = __INFO_BASE + b"threshoold_request_decrypting"
_TLS_INFO = __INFO_BASE + b"tls"
# Wrapping key
@ -233,7 +233,7 @@ class Keystore:
DelegatingPower: _DELEGATING_INFO,
TLSHostingPower: _TLS_INFO,
RitualisticPower: _RITUALISTIC_INFO,
ThresholdRequestDecryptingPower: _CBD_DECRYPTING_INFO,
ThresholdRequestDecryptingPower: _THRESHOLD_REQUEST_DECRYPTING_INFO,
}
class Exists(FileExistsError):

View File

@ -152,7 +152,9 @@ def _make_rest_app(this_node, log: Logger) -> Flask:
(
decryption_request,
response_encrypting_key,
) = this_node.decrypt_threshold_decryption_request(encrypted_decryption_request)
) = this_node.decrypt_threshold_decryption_request(
encrypted_request=encrypted_decryption_request
)
log.info(f"Threshold decryption request for ritual ID #{decryption_request.id}")