Skip to content

Commit

Permalink
signoff: Primitive root of unity
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-ferdinand committed Dec 8, 2024
1 parent 5c071f0 commit 5b10564
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ commit_parsers = [
{ message = "^style", group = "<!-- 90 --> 🎨 Styling" },
{ message = "^build", group = "<!-- 95 --> 🛠 Build" },
{ message = "^bench", group = "<!-- 98 --> ⏱ Bench" },
{ message = "^signoff", group = "<!--110 --> 🖋 Snippet Sign-Off" },
{ footer = "^changelog: ?ignore", skip = true },
]

Expand Down
11 changes: 11 additions & 0 deletions tasm-lib/src/arithmetic/bfe/primitive_root_of_unity.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use std::collections::HashMap;

use num_traits::Zero;
use rand::prelude::*;
use triton_vm::prelude::*;
Expand All @@ -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.
Expand Down Expand Up @@ -177,6 +181,13 @@ impl BasicSnippet for PrimitiveRootOfUnity {
return
)
}

fn sign_offs(&self) -> HashMap<Reviewer, SignOffFingerprint> {
let mut sign_offs = HashMap::new();
sign_offs.insert(Reviewer("ferdinand"), 0xfcf839b15db0eef5.into());

sign_offs
}
}

impl Closure for PrimitiveRootOfUnity {
Expand Down

0 comments on commit 5b10564

Please sign in to comment.