Most (all?) headers don't have a logger.
Rename raw to toRaw.
Tuck away intermediate header and key types to clean up top-level API.