new PrivateRangeProof66562(originalNote, comparisonNote, utilityNote, sender, safeguard)
Constructs a private range proof - proving that the value of one AZTEC note, the originalNote, is greater than the value of a second AZTEC note, the comparisonNote. The balancing relationship satisfied is:
originalNoteValue = comparisonNoteValue + utilityNoteValue
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
originalNote |
Note |
note whose value is being compared against the comparisonNote |
|
comparisonNote |
Note |
note being compared against |
|
utilityNote |
Note |
helper note used to construct a balancing relationship in the proof. The value of this note must be chosen to satisfy the equation: originalNoteValue = comparisonNoteValue + utilityNoteValue |
|
sender |
string |
Ethereum address of the transaction sender |
|
safeguard |
boolean | true |
Boolean flag to turn on a balancing check prior to construction of proof |
Methods
checkBalancingRelationShipSatisfied()
Check that notes have been supplied which satisfy the privateRange balancing relationship
Balancing relationship: originalNoteValue = comparisonNoteValue + utilityNoteValue
constructBlindingFactors()
Generate blinding factors based on the previous blinding scalars
encodeABI() → {Object}
Encode the privateRange proof as data for an Ethereum transaction