Post
Topic
Board Development & Technical Discussion
Merits 2 from 2 users
Re: How to convert High-S value to Low-S value?
by
pooya87
on 07/08/2020, 03:33:43 UTC
⭐ Merited by Heisenberg_Hunter (1) ,ETFbitcoin (1)
How do I replace it? I don’t get it. Is there step by step tutorial? My S value doesn’t look like anything like what your just sent.

with palpable integers:
Code:
N = 23
s = 18 -> -s = -18
-18 ≡ 5 (mod 23)

If you are doing this by hand, don't forget to change the length before the S value.
things like this should never be done by hand Smiley
you missed the sequence length in your first (high s) signature which should have been 0x45 and also it is easy to miss the scriptsig length that comes before all this which should also be reduced by one.