moose 0.2.2

Encrypted learning and data processing framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::*;
use crate::computation::Placed;
use crate::error::Result;
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct RepAesKey<RepBitArrayT>(pub(crate) RepBitArrayT);

impl<RepBitArrayT> Placed for RepAesKey<RepBitArrayT>
where
    RepBitArrayT: Placed<Placement = ReplicatedPlacement>,
{
    type Placement = ReplicatedPlacement;

    fn placement(&self) -> Result<Self::Placement> {
        self.0.placement()
    }
}