From 3b88b97245f22b5e9beabfe6d492b42844875be2 Mon Sep 17 00:00:00 2001 From: William Lin <31808623+Will-Lin4@users.noreply.github.com> Date: Sun, 11 Apr 2021 00:46:35 -0400 Subject: [PATCH] Fix MarlinPC's CommitterKey to return the correct supported_degree (#78) --- CHANGELOG.md | 1 + src/marlin/marlin_pc/data_structures.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ef9c799..5dbb335a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ ## Pending +- MarlinPC's `supported_degree` fix. ### Breaking changes diff --git a/src/marlin/marlin_pc/data_structures.rs b/src/marlin/marlin_pc/data_structures.rs index 2e4581db..37e075db 100644 --- a/src/marlin/marlin_pc/data_structures.rs +++ b/src/marlin/marlin_pc/data_structures.rs @@ -88,7 +88,7 @@ impl PCCommitterKey for CommitterKey { } fn supported_degree(&self) -> usize { - self.powers.len() + self.powers.len() - 1 } }