From 73b5ae2734050d64157afbc29d364345ff0ec211 Mon Sep 17 00:00:00 2001 From: Balazs Komuves Date: Fri, 16 Jan 2026 12:08:25 +0100 Subject: [PATCH] another convenience function (man, nim namespacing and scoping fucking sucks...) --- groth16/partial/types.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/groth16/partial/types.nim b/groth16/partial/types.nim index 2c7b24c..3be2c69 100644 --- a/groth16/partial/types.nim +++ b/groth16/partial/types.nim @@ -27,3 +27,6 @@ type partial_pi_c* : G1 # = sum z_j*[K_j]_1 #------------------------------------------------------------------------------- + +func makePartialWitness*(vals: seq[Option[Fr[BN254_Snarks]]]): PartialWitness = + return PartialWitness(values: vals)