By making use of a proof-of-work consensus formula
https://folkd.com/blog/Kaspa-or-Bitcoin--Which-Cryptocurrency-Should-You-Pick-
By using a proof-of-work consensus algorithm, Kaspa guarantees the honesty of its blockchain network and stops double-spending