From 2471cff83e2ba4a29e0f8b2a0d776738a6be8d68 Mon Sep 17 00:00:00 2001
From: Awiteb
Date: Thu, 4 Jul 2024 17:38:42 +0300
Subject: [PATCH] chore: Remove `sign` and `verify` function logs`
Signed-off-by: Awiteb
---
crates/oxidetalis_core/src/cipher.rs | 3 ---
1 file changed, 3 deletions(-)
diff --git a/crates/oxidetalis_core/src/cipher.rs b/crates/oxidetalis_core/src/cipher.rs
index 4ed05d0..4fdd06f 100644
--- a/crates/oxidetalis_core/src/cipher.rs
+++ b/crates/oxidetalis_core/src/cipher.rs
@@ -33,7 +33,6 @@ use k256::{
NonZeroScalar,
PublicKey,
};
-use logcall::logcall;
use rand::{thread_rng, RngCore};
use crate::types::{
@@ -204,7 +203,6 @@ impl K256Secret {
/// Sign a data with the shared secret.
///
/// The signature is explained in the OTMP specification.
- #[logcall]
pub fn sign(&self, data: &[u8], sign_to: &CorePublicKey) -> CoreSignature {
Self::sign_with_shared_secret(data, &self.shared_secret(sign_to))
}
@@ -213,7 +211,6 @@ impl K256Secret {
///
/// Note:
/// The time and the nonce will not be checked here
- #[logcall]
pub fn verify(&self, data: &[u8], signature: &CoreSignature, signer: &CorePublicKey) -> bool {
signature.verify(data, &self.shared_secret(signer))
}