File size: 489 Bytes
224e773
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//! Inverted AST Security Model
//!
//! Payload nodes (weight=0) cannot control routing authority.
//! Structural nodes (weight=1) carry authority.

pub mod nodes;
pub mod weights;
pub mod validation;

pub use hyperkitty_core::{Error, Result};
pub use nodes::{AstNode, NodeType};

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn node_creation() {
        let node = AstNode::new(NodeType::Intent, "test");
        assert!(node.weight() > 0.0);
    }
}