Browse Source

Allow calling neg() in the sigma-rs generated code

Ian Goldberg 3 months ago
parent
commit
a9175aa83e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      sigma_compiler_core/src/sigma/codegen.rs

+ 1 - 0
sigma_compiler_core/src/sigma/codegen.rs

@@ -733,6 +733,7 @@ impl<'a> CodeGen<'a> {
                 };
                 use sigma_compiler::rand::{CryptoRng, RngCore};
                 use sigma_compiler::group::ff::PrimeField;
+                use std::ops::Neg;
                 #dump_use
 
                 #group_types