(Builds on top of #322)
This changes the implied y coordinate in Schnorr signatures to be the one which is a quadratic residue (the older logic required it to be even). This should be faster, as it doesn't need a modular inverse.
I guess it's worth reminding that our sqrt returns the particular root (if any exist) that is a quadratic residue already, which seems relevant to "Verification (method 2)".
@peterdettman Yes, I implemented it that way. It could use some explanation indeed.
@peterdettman By the way, do you have any intuition for a fast (and hopefully not too complex) algorithm for computing a Jacobi symbol (a|p) (where p is the size of our field)?
Also add native Jacobi symbol test (Andrew)
Rebased-by: Andrew Poelstra
Rebased-by: Pieter Wuille
Going to do this differently.