Skip to content

Commit 6656e42

Browse files
authored
Merge pull request #50 from ZenGo-X/curv-0.7
Use curv from crates.io and bump version
2 parents 77104ec + da4a93c commit 6656e42

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Cargo.toml

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "class_group"
3-
version = "0.5.1"
3+
version = "0.5.2"
44
authors = ["omershlo <[email protected]>"]
55
edition = "2018"
66
links = "libpari"
@@ -16,10 +16,7 @@ serde_derive = "1.0"
1616
serde_json = "1.0"
1717
ring-algorithm = "0.2.3"
1818
num-traits = "0.2"
19-
20-
[dependencies.curv]
21-
git = "https://github.com/KZen-networks/curv"
22-
tag = "v0.6.2"
19+
curv = { package = "curv-kzen", version = "0.7" }
2320

2421
[dev-dependencies]
2522
criterion = ">=0.2"

src/lib.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use libc::c_char;
1717
use std::ffi::CStr;
1818
use std::mem::swap;
1919
use std::ops::Neg;
20-
use std::str;
20+
use std::{str, ptr};
2121

2222
pub mod primitives;
2323

@@ -172,8 +172,7 @@ impl BinaryQF {
172172
let pari_qf = self.qf_to_pari_qf();
173173
let pari_n = bn_to_gen(n);
174174

175-
let mut v = unsafe { std::mem::MaybeUninit::uninit().assume_init() };
176-
let pari_qf_exp = unsafe { nupow(pari_qf, pari_n, &mut v) };
175+
let pari_qf_exp = unsafe { nupow(pari_qf, pari_n, ptr::null_mut()) };
177176
let qf_exp = BinaryQF::pari_qf_to_qf(pari_qf_exp);
178177
qf_exp
179178
}

0 commit comments

Comments
 (0)