diff --git a/cliff.toml b/cliff.toml index 9369ac1f..7574dd3a 100644 --- a/cliff.toml +++ b/cliff.toml @@ -59,6 +59,7 @@ commit_parsers = [ { message = "^style", group = " 🎨 Styling" }, { message = "^build", group = " 🛠 Build" }, { message = "^bench", group = " ⏱ Bench" }, + { message = "^signoff", group = " 🖋 Snippet Sign-Off" }, { footer = "^changelog: ?ignore", skip = true }, ] diff --git a/tasm-lib/src/arithmetic/bfe/primitive_root_of_unity.rs b/tasm-lib/src/arithmetic/bfe/primitive_root_of_unity.rs index b3a69d36..66db801f 100644 --- a/tasm-lib/src/arithmetic/bfe/primitive_root_of_unity.rs +++ b/tasm-lib/src/arithmetic/bfe/primitive_root_of_unity.rs @@ -1,3 +1,5 @@ +use std::collections::HashMap; + use num_traits::Zero; use rand::prelude::*; use triton_vm::prelude::*; @@ -7,6 +9,8 @@ use crate::data_type::DataType; use crate::empty_stack; use crate::snippet_bencher::BenchmarkCase; use crate::traits::basic_snippet::BasicSnippet; +use crate::traits::basic_snippet::Reviewer; +use crate::traits::basic_snippet::SignOffFingerprint; use crate::traits::closure::Closure; /// Fetch the primitive root of unity of the given order. @@ -177,6 +181,13 @@ impl BasicSnippet for PrimitiveRootOfUnity { return ) } + + fn sign_offs(&self) -> HashMap { + let mut sign_offs = HashMap::new(); + sign_offs.insert(Reviewer("ferdinand"), 0xfcf839b15db0eef5.into()); + + sign_offs + } } impl Closure for PrimitiveRootOfUnity {