소스 검색

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