Skip to content

Implement variable-bound range proofs #21

@str4d

Description

@str4d

The Bitcoin example recursive circuit needs to enforce:

  • hash <= target (to ensure the block header satisfies the required work)
  • remainder <= target (as part of constraining the integer division 2^256 / (target + 1) = work)

target is expanded from the header's nBits field, and thus is almost never a power of two, requiring a variable-bound range proof.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions