Trait for ensuring the group public key has an even Y coordinate.
In BIP-340, public keys are encoded with only the X coordinate, which
means that two Y coordinates are possible. The specification says that
the coordinate which is even must be used.
This is accomplished by simply negating both private and public keys
if Y is odd.
Trait for ensuring the group public key has an even Y coordinate.
In BIP-340, public keys are encoded with only the X coordinate, which means that two Y coordinates are possible. The specification says that the coordinate which is even must be used.
This is accomplished by simply negating both private and public keys if Y is odd.