Though I don't fully support this, it is allowed.
1: the person opening the crates would only be able to do it at a certain time when his friend is online.
2: if the crate opening decides to leave the game with his friends items then it's game over. Trust trading is bad.