I am building a range proof to prove that a secret number x lies between a specific range a
prover commits to a values a<x<b
prover generates a pedersen commitment to a value a
prover generates a range proof to commitment that is commitment from 1 minus commitment from 2
prover sends range proof together with the opening of the commitment from 2
regarding step 3, how do I subtract one commitment from another? is there a better way?
Note: I am using the a javascript implementation to calculate the pederssen commitment https://github.com/omershlo/simple-bulletproof-js