25 lines
547 B
Rust
25 lines
547 B
Rust
|
use serde::{Serialize, Deserialize};
|
||
|
|
||
|
#[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(),
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
*/
|
||
|
|