xonly property
ECPrivateKey
get
xonly
Get the private key where the public key always has an even Y-coordinate for any X-coordinate. This is used for Schnorr signatures.
Implementation
ECPrivateKey get xonly => pubkey.yIsEven
? this
: ECPrivateKey(secp256k1.privKeyNegate(_data), compressed: compressed);