Here I:
- add header-sensitive size checking via CPubKey::ValidSize
- move toward referring to the consts where possible, rather than magic numbers
- rename size consts to not repeat the type in variable name
My first PR! Just getting a sense of the codebase at this point. The last point at least is purely a question of style, happy to back that out.