Advertising and discovering trusted resources within a P2P-based architecture