`fromHex` and `toHex` are only used in tests. Move them into tests then? We don't want to over expose the interface which could end up being abused.