Revert "Implemented the second encoder and changed public_messages.c"

This reverts commit 86d0ecf40cc55329d919e4b4c9b6c5b8b82be678.