mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-04 06:13:10 +00:00
fix: remove unused enum
This commit is contained in:
parent
40991cf6d1
commit
01f7acb4d6
@ -4,7 +4,7 @@ use std::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use common::{error::SequencerClientError, sequencer_client::SequencerClient};
|
use common::sequencer_client::SequencerClient;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
use crate::key_management::{
|
use crate::key_management::{
|
||||||
@ -29,16 +29,6 @@ pub struct KeyTree<N: KeyNode> {
|
|||||||
pub type KeyTreePublic = KeyTree<ChildKeysPublic>;
|
pub type KeyTreePublic = KeyTree<ChildKeysPublic>;
|
||||||
pub type KeyTreePrivate = KeyTree<ChildKeysPrivate>;
|
pub type KeyTreePrivate = KeyTree<ChildKeysPrivate>;
|
||||||
|
|
||||||
#[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<N: KeyNode> KeyTree<N> {
|
impl<N: KeyNode> KeyTree<N> {
|
||||||
pub fn new(seed: &SeedHolder) -> Self {
|
pub fn new(seed: &SeedHolder) -> Self {
|
||||||
let seed_fit: [u8; 64] = seed
|
let seed_fit: [u8; 64] = seed
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user