Rusty Russell [ARCHIVE] on Nostr: 📅 Original date posted:2015-06-06 📝 Original message:Mark Friedenbach <mark at ...
📅 Original date posted:2015-06-06
📝 Original message:Mark Friedenbach <mark at friedenbach.org> writes:
> Rusty, this doesn't play well with SIGHASH_SINGLE which is used in
> assurance contracts among other things. Sometimes the ordering is set by
> the signing logic itself...
Ah, I forgot about that particular wart. Yech. Implies that you can
order inputs or outputs, not both.
Something like "outputs must be in order, inputs which do not
CHECK(MULTI)SIG_(VERIFY) a SIGHASH_SINGLE sig must be in order with
respect to each other". But that's much less trivial since it implies
script evaluation.
In other news, I noticed Kristov Atlas's concurrent proposal just after
I posted this (via reddit). He used far more words, but didn't note
this issue either AFAICT.
Thanks!
Rusty.
Published at
2023-06-07 15:36:42Event JSON
{
"id": "731369f26b11e9f002aa19120b960beae929753aee30683913f32b8b0bb875c3",
"pubkey": "13bd8c1c5e3b3508a07c92598647160b11ab0deef4c452098e223e443c1ca425",
"created_at": 1686152202,
"kind": 1,
"tags": [
[
"e",
"981f41da2a008fa33b1384e8dd3f0d4a96b7f3bed5c463f00f9032a495226e9c",
"",
"root"
],
[
"e",
"689c00471629956759cc83e098c8d6ae37d4e319662a3a41afe06f088ccf19f1",
"",
"reply"
],
[
"p",
"1c61d995949cbfaf14f767784e166bde865c7b8783d7aa3bf0a1d014b70c0069"
]
],
"content": "📅 Original date posted:2015-06-06\n📝 Original message:Mark Friedenbach \u003cmark at friedenbach.org\u003e writes:\n\u003e Rusty, this doesn't play well with SIGHASH_SINGLE which is used in\n\u003e assurance contracts among other things. Sometimes the ordering is set by\n\u003e the signing logic itself...\n\nAh, I forgot about that particular wart. Yech. Implies that you can\norder inputs or outputs, not both.\n\nSomething like \"outputs must be in order, inputs which do not\nCHECK(MULTI)SIG_(VERIFY) a SIGHASH_SINGLE sig must be in order with\nrespect to each other\". But that's much less trivial since it implies\nscript evaluation.\n\nIn other news, I noticed Kristov Atlas's concurrent proposal just after\nI posted this (via reddit). He used far more words, but didn't note\nthis issue either AFAICT.\n\nThanks!\nRusty.",
"sig": "830467a54af857ae8bde4a6216f0083fc75ac5b31143440d5cae777bcebecd65280c5ba2eff94c69206a448ed101200c15d8990bdd0ed19cfe30330d9a3d1f17"
}