Skip to content

Commit

Permalink
Fix argument order in the Python binding of CapsuleFrag.verify
Browse files Browse the repository at this point in the history
  • Loading branch information
fjarri committed Mar 28, 2021
1 parent 08597dc commit b13e0f4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion umbral-pre-python/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions umbral-pre-python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
}
Expand Down
2 changes: 1 addition & 1 deletion umbral-pre-python/umbral_pre/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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:
...
Expand Down

0 comments on commit b13e0f4

Please sign in to comment.