Open
Description
Currently, it's not possible to use PathVar::new_witness
for a placeholder PathVar
in the merkle
module. The reason why is that it takes in a Result<Vec<T>, SynthesisError>
instead of something more like Vec<Option<T>>
, which is used in other sequence-like variables. The reason the latter is necessary is because the allocator needs to know how many variables to create.
This is an issue and not a PR because I don't have any good ways off the top of my head to fix this. The workaround is pretty easy (just make an arbitrary Path
of the appropriate length), but that doesn't fit with how the rest of the library works.