Since it doesn't involve the transfer of money or copyrighted material, it shouldn't yet be rejected by Apple's reviewers as the BitTorrent and BitCoin protocol have been. Skype is still allowed, and that technically is (or used to be?) a peer to peer communications system.
Unfortunately, you aren't presently allowed by Apple to run a background socket on iOS for longer than 10 minutes unless it is a full VoIP application, so you would never be able to use it for push-style communication, without compromising a user's anonymity via a web backend that stores your APNS token (device specific messaging token for iOS devices).
[1] https://github.com/ChatSecure/OnionKit [2] https://chatsecure.org