Privacy-preserving techniques for on-chain analytics to reduce leakage