Skip to content

Fix inconsistent check return type #68

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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