diff --git a/common/nym-kkt-ciphersuite/src/lib.rs b/common/nym-kkt-ciphersuite/src/lib.rs index 2788d3cc3a..286e889c46 100644 --- a/common/nym-kkt-ciphersuite/src/lib.rs +++ b/common/nym-kkt-ciphersuite/src/lib.rs @@ -273,16 +273,16 @@ impl Ciphersuite { self.verification_key_length } - pub fn hash_function(&self) -> HashFunction { - self.hash_function + pub fn hash_function(&self) -> &HashFunction { + &self.hash_function } - pub fn kem(&self) -> KEM { - self.kem + pub fn kem(&self) -> &KEM { + &self.kem } - pub fn signature_scheme(&self) -> SignatureScheme { - self.signature_scheme + pub fn signature_scheme(&self) -> &SignatureScheme { + &self.signature_scheme } pub fn hash_len(&self) -> usize {