mirror of https://github.com/nucypher/nucypher.git
Some code cleanup.
parent
52065dcb04
commit
ac0296037d
|
@ -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 (
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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}")
|
||||
|
||||
|
|
Loading…
Reference in New Issue