Bitcoin Forum
June 30, 2024, 11:23:44 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: non-mandatory-script-verify-flag (Non-canonical DER signature) (code 64)  (Read 124 times)
Fellane (OP)
Copper Member
Newbie
*
Offline Offline

Activity: 23
Merit: 32


View Profile WWW
August 07, 2020, 03:36:12 AM
 #1

Here is my signed raw transaction:

Code:
 01000000014b292ab171c7caaa421aeb84850479d6d3a6eda5de59affc890203ff597d81ad010000006b483045022100d8094ade89c8fa52117490869be3ee12b51da54dea66479c2e0e746e6aaa327f0220bea5364a573b7be0d1b103f0a79dd781e3bcb6e66c2d90e0a356dbd1ee70cc750121035640dd343b07721422722b87f9d35515dc42ae664c8504a83b83ed2c6dbf011cfdffffff0188130000000000001976a9140c2de57061cc2ade24e901b63dcf4b7c039f47af88ac00000000

I managed to convert my High-S value to Low-S value and now I am getting the error: non-mandatory-script-verify-flag (Non-canonical DER signature) (code 64) when trying to broadcast this transaction. What do I do?

pooya87
Legendary
*
Offline Offline

Activity: 3500
Merit: 10694



View Profile
August 07, 2020, 04:55:32 AM
Merited by o_e_l_e_o (2), Heisenberg_Hunter (1)
 #2

could you post the original transaction with the original signature, because as i replied to your PM this s is still high and you must have made a computational error.

as for the error, you are getting it because your s value has its highest bit set but does not have a starting zero to indicate it is a positive integer.
s = 0xbea5364a573b7be0d1b103f0a79dd781e3bcb6e66c2d90e0a356dbd1ee70cc75
0xbe = 0b10111110
so it has to become 0x00bea5364a573b7be0d1b103f0a79dd781e3bcb6e66c2d90e0a356dbd1ee70cc75

the modified tx with low s assuming the s in OP is not invalid is the following:
Code:
01000000014b292ab171c7caaa421aeb84850479d6d3a6eda5de59affc890203ff597d81ad010000006b483045022100d8094ade89c8fa52117490869be3ee12b51da54dea66479c2e0e746e6aaa327f0220415ac9b5a8c4841f2e4efc0f5862287cd6f22600431b0f5b1c7b82bae1c574cc0121035640dd343b07721422722b87f9d35515dc42ae664c8504a83b83ed2c6dbf011cfdffffff0188130000000000001976a9140c2de57061cc2ade24e901b63dcf4b7c039f47af88ac00000000

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
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!