Author

Topic: Non-standard public keys and signatures (Read 406 times)

legendary
Activity: 1232
Merit: 1094
January 17, 2014, 09:29:30 AM
#1
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
Jump to: