Pieter Wuille [ARCHIVE] on Nostr: 📅 Original date posted:2015-01-21 📝 Original message:On Tue, Jan 20, 2015 at ...
📅 Original date posted:2015-01-21
📝 Original message:On Tue, Jan 20, 2015 at 11:45 PM, Rusty Russell <rusty at rustcorp.com.au> wrote:
> // Null bytes at the start of R are not allowed, unless it would otherwise be
> // interpreted as a negative number.
> if (lenS > 1 && (sig[lenR + 6] == 0x00) && !(sig[lenR + 7] & 0x80))
> return false;
>
> You mean "null bytes at the start of S".
Thanks, fixed.
--
Pieter
Published at
2023-06-07 15:28:51Event JSON
{
"id": "049334e56e6362c3e271aed9297a108e549062734c75591ff5c59f037733216e",
"pubkey": "5cb21bf5d7f25a9d46879713cbd32433bbc10e40ef813a3c28fe7355f49854d6",
"created_at": 1686151731,
"kind": 1,
"tags": [
[
"e",
"43498997aaf69cc28c108f60f2a0a9a1eeab544cf4e7f9ece35a133ac15cb4c1",
"",
"root"
],
[
"e",
"381c94393ca074f5454f688d978baf2b719d03f07376325b6b9dfd6e40f4dd92",
"",
"reply"
],
[
"p",
"13bd8c1c5e3b3508a07c92598647160b11ab0deef4c452098e223e443c1ca425"
]
],
"content": "📅 Original date posted:2015-01-21\n📝 Original message:On Tue, Jan 20, 2015 at 11:45 PM, Rusty Russell \u003crusty at rustcorp.com.au\u003e wrote:\n\u003e // Null bytes at the start of R are not allowed, unless it would otherwise be\n\u003e // interpreted as a negative number.\n\u003e if (lenS \u003e 1 \u0026\u0026 (sig[lenR + 6] == 0x00) \u0026\u0026 !(sig[lenR + 7] \u0026 0x80))\n\u003e return false;\n\u003e\n\u003e You mean \"null bytes at the start of S\".\n\nThanks, fixed.\n\n-- \nPieter",
"sig": "c1401d113e1161b25f7debda4defa313a682bff6929987994395aea844cbf7c968e8c8b99f2d3923b3a12dd86e9324c14a5bf9b3c511200adf967171e5d85889"
}