diff --git a/umbral-pre-python/docs/index.rst b/umbral-pre-python/docs/index.rst index ac183e39..acb94f43 100644 --- a/umbral-pre-python/docs/index.rst +++ b/umbral-pre-python/docs/index.rst @@ -85,7 +85,7 @@ API reference A reencrypted fragment of an encapsulated symmetric key. - .. py:method:: verify(capsule: Capsule, signing_pk: PublicKey, delegating_pk: PublicKey, receiving_pk: PublicKey, metadata: Optional[bytes]) -> bool + .. py:method:: verify(capsule: Capsule, delegating_pk: PublicKey, receiving_pk: PublicKey, signing_pk: PublicKey, metadata: Optional[bytes]) -> bool Verifies the integrity of the fragment. diff --git a/umbral-pre-python/src/lib.rs b/umbral-pre-python/src/lib.rs index 4cc91987..7d9d9989 100644 --- a/umbral-pre-python/src/lib.rs +++ b/umbral-pre-python/src/lib.rs @@ -237,16 +237,16 @@ impl CapsuleFrag { pub fn verify( &self, capsule: &Capsule, - signing_pk: &PublicKey, delegating_pk: &PublicKey, receiving_pk: &PublicKey, + signing_pk: &PublicKey, metadata: Option<&[u8]>, ) -> bool { self.backend.verify( &capsule.backend, - &signing_pk.backend, &delegating_pk.backend, &receiving_pk.backend, + &signing_pk.backend, metadata, ) } diff --git a/umbral-pre-python/umbral_pre/__init__.pyi b/umbral-pre-python/umbral_pre/__init__.pyi index e60170db..e4ba1e8a 100644 --- a/umbral-pre-python/umbral_pre/__init__.pyi +++ b/umbral-pre-python/umbral_pre/__init__.pyi @@ -63,9 +63,9 @@ class CapsuleFrag: def verify( self, capsule: Capsule, - signing_pk: PublicKey, delegating_pk: PublicKey, receiving_pk: PublicKey, + signing_pk: PublicKey, metadata: Optional[bytes], ) -> bool: ...