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
It's difficult to identify which element of privateInputs corresponds to which of the rest-spread parameters of method.
We should be able to infer the types of the rest-spread tuple from privateInputs.
We're unable to attach tsdocs to parameters. This would potentially be valuable for consumers of the program.
Ideally we could do the following.
constRollup=ZkProgram({name: "rollup-example",publicInput: Field,methods: {oneStep: Method({/** some docs that are now attached to the `initialRoot` key */initialRoot: Field,latestRoot: Field,key: Field,currentValue: Field,incrementAmount: Field,merkleMapWitness: MerkleMapWitness,},(state,{ initialRoot, latestRoot, key, currentValue, incrementAmount, merkleMapWitness })=>{// ...
This also spares the developer of needing to––in their minds––shift the private inputs over by 1 (accommodating the public input).
The text was updated successfully, but these errors were encountered:
Looking at the recursion docs, I think some subtle changes would result in greater legibility. Let's consider the following:
privateInputs
corresponds to which of the rest-spread parameters ofmethod
.privateInputs
.Ideally we could do the following.
This also spares the developer of needing to––in their minds––shift the private inputs over by 1 (accommodating the public input).
The text was updated successfully, but these errors were encountered: