Bitcoin protocol parser and framer