Skip to content

Commit fd03714

Browse files
committed
refactor(crypto): rename parameters for clarity
Rename wrapper parameter to enc_message in CryptoService methods for clarity. Also fix typo in SecretsManager docstring. Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
1 parent 8e36536 commit fd03714

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

didcomm_messaging/crypto/base.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ async def ecdh_es_encrypt(self, to_keys: Sequence[P], message: bytes) -> bytes:
9191
"""Encode a message into DIDComm v2 anonymous encryption."""
9292

9393
@abstractmethod
94-
async def ecdh_es_decrypt(self, wrapper: Union[str, bytes], recip_key: S) -> bytes:
94+
async def ecdh_es_decrypt(
95+
self, enc_message: Union[str, bytes], recip_key: S
96+
) -> bytes:
9597
"""Decode a message from DIDComm v2 anonymous encryption."""
9698

9799
@abstractmethod
@@ -106,7 +108,7 @@ async def ecdh_1pu_encrypt(
106108
@abstractmethod
107109
async def ecdh_1pu_decrypt(
108110
self,
109-
wrapper: Union[str, bytes],
111+
enc_message: Union[str, bytes],
110112
recip_key: S,
111113
sender_key: P,
112114
) -> bytes:
@@ -121,7 +123,7 @@ def verification_method_to_public_key(cls, vm: VerificationMethod) -> P:
121123
class SecretsManager(ABC, Generic[S]):
122124
"""Secrets Resolver interface.
123125
124-
Thie secrets resolver may be used to supplement the CryptoService backend to provide
126+
The secrets resolver may be used to supplement the CryptoService backend to provide
125127
greater flexibility.
126128
"""
127129

0 commit comments

Comments
 (0)