An ECDSA algorithm when signing a given messages produces a pair of outputs, r and s. How, given a sigStr from a Tx can one extract r and s? Are they just concatenated byte arrays of a specific length, or is there more to it?
|
feedback
|
|
If you want, you can pay $100 for the standard, ANSI X9.62. Or, you can cheat and look at RFC3278, section 8.2. It is in DER format consisting of a SEQUENCE of two INTEGERs. The first INTEGER is If you look at this transaction you can see that one of the signatures is:
If we parse that as DER, we get:
You can also peek at the OpenSSL source code, file
| |||||||||
feedback
|