ebfull / halo

Other
115 stars 17 forks source link

Implement variable-bound range proofs #21

Open str4d opened 5 years ago

str4d commented 5 years ago

The Bitcoin example recursive circuit needs to enforce:

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

daira commented 5 years ago

I recommend implementing the power-of-two range proof as a separate gadget, and then implementing this in terms of that one.