From: mark on
So, the public key can be represented by your generator, some mod p,
and your y (where y = the generator^(random exponent) mod p.

Obviously, you could not hardcode your y value, as it depends on your
random a, but it seems like you could hardcode the generator and the
modulus and not really affect the security of it all. Does this seem
correct, or is there a reason not to?