瀏覽代碼

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

Ian Goldberg 7 月之前
父節點
當前提交
a9175aa83e
共有 1 個文件被更改,包括 1 次插入0 次删除
  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