![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 17, 2014, 02:29:30 PM Last edit: January 17, 2014, 03:35:07 PM by TierNolan |
|
Is there code that checks that public keys and signatures are canonical?
For example, a public key with a coordinate larger than the modulus or encoded with extra leading zeros or something (acceptable to openSSL but unusual).
I have a memory of a non-canonical encodings being set as non-standard, but couldn't find the code.
[edit] Found it, the flag SCRIPT_VERIFY_STRICTENC causes IsCanonicalPubKey to check public keys
|