Skip to content

Commit

Permalink
fixed the string formatting (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
kashbrti authored Dec 12, 2024
1 parent 2cd1937 commit b8bd97c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/utils/derive_offset_generators.nr
Original file line number Diff line number Diff line change
Expand Up @@ -518,21 +518,21 @@ where
offset_generator_final[1] = gen.y.__mul(zzz);
}

println(f"pub struct {curvestr} {}");
println(f"pub struct {curvestr} {{}}");
println(
f"impl CurveParamsTrait<BigNum<{n}, {paramstr}>> for {curvestr} {",
f"impl CurveParamsTrait<BigNum<{n}, {paramstr}>> for {curvestr} {{",
);

println(f" fn a() -> BigNum<{n}, {paramstr}> { {a} }");
println(f" fn b() -> BigNum<{n}, {paramstr}> { {b} }");
println(f" fn one() -> [BigNum<{n}, {paramstr}>; 2] { {one} }");
println(f" fn a() -> BigNum<{n}, {paramstr}> {{ {a} }}");
println(f" fn b() -> BigNum<{n}, {paramstr}> {{ {b} }}");
println(f" fn one() -> [BigNum<{n}, {paramstr}>; 2] {{ {one} }}");
println(
f" fn offset_generator() -> [BigNum<{n}, {paramstr}>; 2] { {offset_generator_initial} }",
f" fn offset_generator() -> [BigNum<{n}, {paramstr}>; 2] {{ {offset_generator_initial} }}",
);
println(
f" fn offset_generator_final() -> [BigNum<{n}, {paramstr}>; 2] { {offset_generator_final} }",
f" fn offset_generator_final() -> [BigNum<{n}, {paramstr}>; 2] {{ {offset_generator_final} }}",
);
println("}");
println("}}");
}

#[test]
Expand Down

0 comments on commit b8bd97c

Please sign in to comment.