keyfork/keyfork-derive-util/src/lib.rs

24 lines
546 B
Rust
Raw Normal View History

2023-08-25 09:28:47 +00:00
use serde::{Deserialize, Serialize};
2023-08-25 09:27:16 +00:00
#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct DerivablePath {
pub(crate) path: Vec<u32>,
}
// TODO: move DerivablePath into a models crate for clients to produce?
/*
impl DerivablePath {
pub fn new(input: &[&[u8]]) -> DerivablePath {
DerivablePath {
path: input
.iter()
.map(|&word| {
// perform path validation
word.to_vec()
})
.collect(),
}
}
}
*/