macro_rules! bfe { ($value:expr) => { ... }; }
Expand description
Simplifies constructing base field elements.
The type BFieldElement
must be in scope for this macro to work.
See BFieldElement::from
for supported types.
ยงExamples
let a = bfe!(42);
let b = bfe!(-12); // correctly translates to `BFieldElement::P - 12`
let c = bfe!(42 - 12);
assert_eq!(a + b, c);