Browse Source

mpdpf: assert no duplicate points

Lennart Braun 2 years ago
parent
commit
ea9c39b4ae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dpf/src/mpdpf.rs

+ 1 - 1
dpf/src/mpdpf.rs

@@ -107,7 +107,7 @@ where
                 .all(|&alpha| alpha < (self.domain_size as u64)),
             "all alphas must be in the domain"
         );
-        assert!(alphas.windows(2).all(|w| w[0] <= w[1]));
+        assert!(alphas.windows(2).all(|w| w[0] < w[1]), "alphas must be sorted");
         (
             DummyMpDpfKey {
                 party_id: 0,