chain_spec_generator/public_models/
trust.rs1use crate::public_models::domain::{
2 address::Address, egress_ip_range::EgressIpRange, encryption_pub_key::EncryptionPubKey,
3};
4
5#[derive(Clone, Debug)]
6pub struct TrustIdentity {
7 pub address: Address,
8 pub pub_key: EncryptionPubKey,
9 pub cidr_blocks: Vec<EgressIpRange>,
10}
11
12impl TrustIdentity {
13 pub fn new(
14 address: Address,
15 pub_key: EncryptionPubKey,
16 egress_ips: Vec<EgressIpRange>,
17 ) -> Self {
18 Self {
19 address,
20 pub_key,
21 cidr_blocks: egress_ips,
22 }
23 }
24}