Bitcoin Forum
September 27, 2024, 03:15:10 AM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to GET R,S from Sigscript and public key only ?  (Read 87 times)
COBRAS (OP)
Member
**
Offline Offline

Activity: 969
Merit: 22


View Profile
March 02, 2021, 04:48:09 AM
 #1

Inputs:

Sigscript
220020e42eb11484b49e20a153f6ea98df915ceb8be88303a9c0900a15e1ec10713b19

Witness
304402202b0c1652c6ba02747f1786545c7426ace8c7592fa1ffa3a99c9bb173fb022785022075f 33e7567ad6cd526f9bf7de2b25333dba34b0cb58ac1461b73081ad9e5b8a701
035359db20be66c35c76a90b6a7eb561733df663fff98689ec19a6a97d7ab2f201
---------------------



How to GET R,S from Sigscript and public key only ?

[
NotATether
Legendary
*
Offline Offline

Activity: 1736
Merit: 7286


In memory of o_e_l_e_o


View Profile WWW
March 02, 2021, 06:16:08 AM
 #2

There's a similar procedure on Bitcoin Stack Exchange: https://bitcoin.stackexchange.com/questions/93711/how-do-i-to-get-the-r-s-and-z-values-from-a-raw-transaction-version-2 that basically says you take the DER-encoded signature in the witness data you provided and it should already have the R and S values. You don't even need the sigScript or public key for this.

In this case the r and s values are after the "02" values and they are:

r: 2b0c1652c6ba02747f1786545c7426ace8c7592fa1ffa3a99c9bb173fb022785
s: 75f33e7567ad6cd526f9bf7de2b25333dba34b0cb58ac1461b73081ad9e5b8a7

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!