Skip to content

AssignmentMissing when using a private PathVar witness #46

Open
@rozbb

Description

@rozbb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    D-mediumDifficulty: mediumP-mediumPriority: mediumT-bugType: bugT-refactorType: cleanup/refactor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions