diff --git a/key_protocol/src/key_management/key_tree/mod.rs b/key_protocol/src/key_management/key_tree/mod.rs index d964af4..9b5014f 100644 --- a/key_protocol/src/key_management/key_tree/mod.rs +++ b/key_protocol/src/key_management/key_tree/mod.rs @@ -4,7 +4,7 @@ use std::{ }; use anyhow::Result; -use common::{error::SequencerClientError, sequencer_client::SequencerClient}; +use common::sequencer_client::SequencerClient; use serde::{Deserialize, Serialize}; use crate::key_management::{ @@ -29,16 +29,6 @@ pub struct KeyTree { pub type KeyTreePublic = KeyTree; pub type KeyTreePrivate = KeyTree; -#[derive(thiserror::Error, Debug)] -pub enum KeyTreeGenerationError { - #[error("Parent chain id {0} not present in tree")] - ParentChainIdNotFound(ChainIndex), - #[error("Parent or left relative of {0} is not initialized")] - PredecesorsNotInitialized(ChainIndex), - #[error("Sequencer client error {0:#?}")] - SequencerClientError(#[from] SequencerClientError), -} - impl KeyTree { pub fn new(seed: &SeedHolder) -> Self { let seed_fit: [u8; 64] = seed