0

The question here Proving amount of Monero - Range Proofs

Talks about how to do a range proof, but it doesn't quite say how to do it using existing methods of making a payment. I want to prove a number is between to positive values, can an existing application, like a specific wallet do this, or is there program code that can do this?

Ron King
  • 1
  • 1

1 Answers1

2

The Monero wallets (official or any others that I'm aware of), do not offer any functionality to perform generic range proofs.

For a generic range proof, you could use code as in user679128's answer. If you are a competent Java developer, there is also a Java library created by one of the Bulletproof authors, which could be used to help implement what you require.

If your question is specific to Monero, insofar as you are wanting to prove you have funds in the wallet between values X and Y, currently this functionality does not exist, though I can imagine use-cases for this functionality. The nearest functionality that exists is get_reserve_proof, which proves you have at least X in your wallet.

jtgrassie
  • 19,601
  • 4
  • 17
  • 54