A Hierarchical Trusted Third-Party System for Secure Peer-to-Peer Transactions