AssignmentMissing when using a private PathVar witness #46
Labels
D-medium
Difficulty: medium
P-medium
Priority: medium
T-bug
Type: bug
T-refactor
Type: cleanup/refactor
Currently, it's not possible to use
PathVar::new_witness
for a placeholderPathVar
in themerkle
module. The reason why is that it takes in aResult<Vec<T>, SynthesisError>
instead of something more likeVec<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.The text was updated successfully, but these errors were encountered: