Serialize bytes properly, parse signatures.