Include cryptonote serialization

Maybe
Formatting noise (move declarations)
Formatting noise
Formatting noise
Formatting noise (moved definition)