This document presents a trust model for peer-to-peer networks that aims to mitigate attacks from malicious peers. It defines two contexts to measure trustworthiness: service and recommendation. Peers calculate trust values for other peers based on past interactions and recommendations from acquaintances. The model includes metrics for service trust, reputation, and recommendation trust to enable peers to assess the trustworthiness of others in their network based on local information.