validating transactions and maintaining the integrity of digital ledgers