From 6033af02f05dbac309368ca9a8ebb76fda91b60e Mon Sep 17 00:00:00 2001 From: Miraculous Owonubi Date: Wed, 13 Nov 2024 16:36:17 +0300 Subject: [PATCH] remove serde on calimero-crypto --- Cargo.lock | 1 - crates/crypto/Cargo.toml | 1 - crates/crypto/src/lib.rs | 3 +-- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 394139efa..5c799c8f2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1204,7 +1204,6 @@ dependencies = [ "eyre", "rand 0.8.5", "ring 0.17.8", - "serde", ] [[package]] diff --git a/crates/crypto/Cargo.toml b/crates/crypto/Cargo.toml index b92f6af11..4370af111 100644 --- a/crates/crypto/Cargo.toml +++ b/crates/crypto/Cargo.toml @@ -10,7 +10,6 @@ license.workspace = true curve25519-dalek.workspace = true ed25519-dalek = { workspace = true, features = ["rand_core"] } ring.workspace = true -serde = { workspace = true, features = ["derive"] } calimero-primitives = { path = "../primitives", features = ["rand"] } diff --git a/crates/crypto/src/lib.rs b/crates/crypto/src/lib.rs index 471d1db74..765fa2eed 100644 --- a/crates/crypto/src/lib.rs +++ b/crates/crypto/src/lib.rs @@ -1,9 +1,8 @@ use calimero_primitives::identity::{PrivateKey, PublicKey}; use ed25519_dalek::{SecretKey, SigningKey}; use ring::aead; -use serde::{Deserialize, Serialize}; -#[derive(Copy, Clone, Debug, Serialize, Deserialize)] +#[derive(Copy, Clone, Debug)] pub struct SharedKey { key: SecretKey, }