Brautigam RĂłbert [ARCHIVE] on Nostr: đź“… Original date posted:2012-01-27 đź“ť Original message:Hi, I'll reply to myself ...
đź“… Original date posted:2012-01-27
đź“ť Original message:Hi,
I'll reply to myself here, just to mention that the issue is solved.
Dave Hook from Bouncycastle replied that in the particular signature
mentioned, one of the ASN1 encoded Integers is actually negative (which
is not a valid coordinate for a point on a curve I assume). Since ASN1
integers are always signed, one has to pad "big" values with a zero byte
to stay positive.
Workaround is easy for verification (convert to positive).
Robert.
On 01/24/2012 06:33 PM, Brautigam RĂłbert wrote:
> On 01/23/2012 06:50 PM, Mike Hearn wrote:
>>> I double checked that the official (C++) client is indeed successful
>>> here. Oddly enough the bitcoinj implementation also seems to fail to
>>> verify this transaction, which seems to point in the direction of
>>> BouncyCastle (which we both use).
...
Published at
2023-06-07 02:57:29Event JSON
{
"id": "77fb2240851e101718e514b08040baddd6cb3a96abb3041fab8f20c42867dad4",
"pubkey": "f316581d354ba4c18a184836d437a078a6ac86f3042919126339b57e69906f9c",
"created_at": 1686106649,
"kind": 1,
"tags": [
[
"e",
"b38bb34b55a69853b6ddad60097eabdc2fab3de87b544bb01dc0808cb0ea1c97",
"",
"root"
],
[
"e",
"0bf420666b51c8ad695df0b007780166fe22c30a90a2464a6c5c0b1c6080b549",
"",
"reply"
],
[
"p",
"f316581d354ba4c18a184836d437a078a6ac86f3042919126339b57e69906f9c"
]
],
"content": "đź“… Original date posted:2012-01-27\nđź“ť Original message:Hi,\n\nI'll reply to myself here, just to mention that the issue is solved.\n\nDave Hook from Bouncycastle replied that in the particular signature \nmentioned, one of the ASN1 encoded Integers is actually negative (which \nis not a valid coordinate for a point on a curve I assume). Since ASN1 \nintegers are always signed, one has to pad \"big\" values with a zero byte \nto stay positive.\n\nWorkaround is easy for verification (convert to positive).\n\nRobert.\n\nOn 01/24/2012 06:33 PM, Brautigam RĂłbert wrote:\n\u003e On 01/23/2012 06:50 PM, Mike Hearn wrote:\n\u003e\u003e\u003e I double checked that the official (C++) client is indeed successful\n\u003e\u003e\u003e here. Oddly enough the bitcoinj implementation also seems to fail to\n\u003e\u003e\u003e verify this transaction, which seems to point in the direction of\n\u003e\u003e\u003e BouncyCastle (which we both use).\n...",
"sig": "570c7234a92d4e0e178996ff5d4ca9c89f9dc836efd2c30e861b5755939c8f66a29cb51665ca5cf64e505c2eb82f7928e6217ccee4b8ac46343f812342cda24a"
}