Skip to content

Commit 4d4f8b8

Browse files
committed
commented a way to generate hex values for serialization.rs
1 parent 3c28bfc commit 4d4f8b8

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

constantine/tests/serialization.rs

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -136,17 +136,16 @@ mod tests {
136136
);
137137
}
138138

139-
// generate points to replace "hexVal" with actual hex strings
140-
// cargo test print_known_points -- --nocapture
141-
#[test]
142-
fn print_known_points() {
143-
for k in [5u64, 7, 1235, 9999] {
144-
let point = CtG1::generator().mul(&CtFr::from_u64(k));
145-
let affine = CtG1Affine::into_affine(&point);
146-
let bytes = affine.to_bytes_uncompressed();
147-
println!("g * {} = {}", k, hex::encode(bytes));
148-
}
149-
}
139+
// // generate points to replace hex::decode in test_uncompressed_known_points()
140+
// #[test]
141+
// fn print_known_points() {
142+
// for k in [5u64, 7, 1235, 9999] {
143+
// let point = CtG1::generator().mul(&CtFr::from_u64(k));
144+
// let affine = CtG1Affine::into_affine(&point);
145+
// let bytes = affine.to_bytes_uncompressed();
146+
// println!("g * {} = {}", k, hex::encode(bytes));
147+
// }
148+
// }
150149

151150
#[test]
152151
fn test_uncompressed_known_points() {

0 commit comments

Comments
 (0)