Trust and integrity in distributed systems