Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rangeproof: add unit test for malleating single-value proofs #295

Merged

Commits on Jun 19, 2024

  1. rangeproof: add unit test for malleating single-value proofs

    I was a bit confused reading `secp256k1_rangeproof_getheader_impl`
    because in the case of single-value proofs (`has_nz_range == 0`) some
    bits of the header are unconstrained. At first I thought this was a
    malleability vector. And I think I've had this same confusion in the
    past.
    
    But in fact it is not a malleability vector because the whole header
    gets hashed into the proof.
    
    Add a unit test to confirm this to reduce future confusion.
    apoelstra committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    3a1c396 View commit details
    Browse the repository at this point in the history