You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi,
seems project not provide the interface to reconstruct parameters from witness stream against to WriteFullTo and WritePublicTo interface. func WritePublicTo(w io.Writer, curveID ecc.ID, publicWitness frontend.Circuit) (int64, error) {
just like the FromPublicAssignment, but it is internal interface.
type Circuit struct {
X frontend.Variable
Y frontend.Variable `gnark:",public"`
Z frontend.Variable `gnark:",public"`
}
public witness stream like "`0000000200000000000000000000000000000000000000000000000000000000000000230000000000000000000000000000000000000000000000000000000000000189"
we hope a open interface to construct the Circuit's specific Y and Z variable from the stream.
The text was updated successfully, but these errors were encountered:
hi gbotrel,
thanks for your response. it is not sufficient for our case only to readAndProve or readAndVerify. some times, in smart contract, we also are care the public inputs to verify or record. so it is necessary to parse the public input to its original struct.
now I just work around it by implemented LimitReadFrom() locally and reflect my circuit to assign them :)
@mdj33latest commit on develop introduces witness.ReadPublicFrom and witness.ReadFullFrom which assign values to a provided witness (as big.Int values) from a io.Reader.
hi,
seems project not provide the interface to reconstruct parameters from witness stream against to WriteFullTo and WritePublicTo interface.
func WritePublicTo(w io.Writer, curveID ecc.ID, publicWitness frontend.Circuit) (int64, error) {
just like the FromPublicAssignment, but it is internal interface.
for example:
we hope a open interface to construct the Circuit's specific Y and Z variable from the stream.
The text was updated successfully, but these errors were encountered: