ELEMENTS:
| 73 | |
| 74 | // ELEMENTS: |
| 75 | void ComputeEntryRangeProof(uint256& entry, const std::vector<unsigned char>& proof, const std::vector<unsigned char>& commitment) { |
| 76 | CSHA256 hasher = m_salted_hasher_range_proof; |
| 77 | hasher.Write(proof.data(), proof.size()).Write(commitment.data(), commitment.size()).Finalize(entry.begin()); |
| 78 | } |
| 79 | void ComputeEntrySurjectionProof(uint256& entry, const uint256 &hash, const std::vector<unsigned char>& proof, const std::vector<unsigned char>& commitment) { |
| 80 | CSHA256 hasher = m_salted_hasher_surjection_proof; |
| 81 | hasher.Write(hash.begin(), 32).Write(proof.data(), proof.size()).Write(commitment.data(), commitment.size()).Finalize(entry.begin()); |