It depends upon lottery jurisdiction. It may require your name, residence, photo, or some other personal details. They may or may not reveal your information in public, But that depends upon your jurisdiction. So you need to confirm with your lottery regarding identity secrecy.