Skip to content

Fix inconsistent check return type #68

@Cesar199999

Description

@Cesar199999

LinearCodePCS::check, which can Err when there is a genuine runtime error during verification OR when no runtime errors occur but the proof is rejected; and, in the latter case, sometimes Ok(false) is returned instead.

In order to fix this, check must return Ok(false) when the proof is rejected due to cryptographic checks, and Err only when there is a genuine runtime error during verification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions