Bitcoin Forum
September 06, 2024, 06:18:39 AM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Non-standard public keys and signatures  (Read 405 times)
TierNolan (OP)
Legendary
*
Offline Offline

Activity: 1232
Merit: 1104


View Profile
January 17, 2014, 02:29:30 PM
Last edit: January 17, 2014, 03:35:07 PM by TierNolan
 #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

1LxbG5cKXzTwZg9mjL3gaRE835uNQEteWF
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!