chore: Remove sign and verify function logs`

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb 2024-07-04 17:38:42 +03:00
parent f69fa7f370
commit 2471cff83e
Signed by: awiteb
GPG key ID: 3F6B55640AA6682F

View file

@ -33,7 +33,6 @@ use k256::{
NonZeroScalar, NonZeroScalar,
PublicKey, PublicKey,
}; };
use logcall::logcall;
use rand::{thread_rng, RngCore}; use rand::{thread_rng, RngCore};
use crate::types::{ use crate::types::{
@ -204,7 +203,6 @@ impl K256Secret {
/// Sign a data with the shared secret. /// Sign a data with the shared secret.
/// ///
/// The signature is explained in the OTMP specification. /// The signature is explained in the OTMP specification.
#[logcall]
pub fn sign(&self, data: &[u8], sign_to: &CorePublicKey) -> CoreSignature { pub fn sign(&self, data: &[u8], sign_to: &CorePublicKey) -> CoreSignature {
Self::sign_with_shared_secret(data, &self.shared_secret(sign_to)) Self::sign_with_shared_secret(data, &self.shared_secret(sign_to))
} }
@ -213,7 +211,6 @@ impl K256Secret {
/// ///
/// Note: /// Note:
/// The time and the nonce will not be checked here /// The time and the nonce will not be checked here
#[logcall]
pub fn verify(&self, data: &[u8], signature: &CoreSignature, signer: &CorePublicKey) -> bool { pub fn verify(&self, data: &[u8], signature: &CoreSignature, signer: &CorePublicKey) -> bool {
signature.verify(data, &self.shared_secret(signer)) signature.verify(data, &self.shared_secret(signer))
} }