Rusty Russell [ARCHIVE] on Nostr: 📅 Original date posted:2018-07-12 📝 Original message: DING FENG <dingfeng12345 ...
📅 Original date posted:2018-07-12
📝 Original message:
DING FENG <dingfeng12345 at gmail.com> writes:
> Hi,
>
> I'm a junior developer and a bitcoin user.
> And I have read this thread carefully.
>
> I'm very worried about "SIGHASH_NOINPUT".
>
> Because "SIGHASH_NOINPUT" looks will be widely used, and it makes reuse
> address more dangerous.
No.
A wallet should *never* create a SIGHASH_NOINPUT to spend its own UTXOs.
SIGHASH_NOINPUT is useful for smart contracts which have unique
conditions, such as a pair of peers rotating keys according to an agreed
schedule (eg. lightning).
Cheers,
Rusty.
Published at
2023-06-09 12:51:08Event JSON
{
"id": "f2c9864bfc86df9b299ead98a045a52278f2f2166e160e9994a23e37b604a68e",
"pubkey": "13bd8c1c5e3b3508a07c92598647160b11ab0deef4c452098e223e443c1ca425",
"created_at": 1686315068,
"kind": 1,
"tags": [
[
"e",
"663916e8f170f60127f6aa3243b92b3d69f1c7433c345d342b16ceac1b085088",
"",
"root"
],
[
"e",
"c81195af60b40119f0723b97347021be21c210aaa55e5c09dc47b8708ff36560",
"",
"reply"
],
[
"p",
"4505072744a9d3e490af9262bfe38e6ee5338a77177b565b6b37730b63a7b861"
]
],
"content": "📅 Original date posted:2018-07-12\n📝 Original message:\nDING FENG \u003cdingfeng12345 at gmail.com\u003e writes:\n\u003e Hi,\n\u003e\n\u003e I'm a junior developer and a bitcoin user.\n\u003e And I have read this thread carefully.\n\u003e\n\u003e I'm very worried about \"SIGHASH_NOINPUT\".\n\u003e\n\u003e Because \"SIGHASH_NOINPUT\" looks will be widely used, and it makes reuse\n\u003e address more dangerous.\n\nNo.\n\nA wallet should *never* create a SIGHASH_NOINPUT to spend its own UTXOs.\nSIGHASH_NOINPUT is useful for smart contracts which have unique\nconditions, such as a pair of peers rotating keys according to an agreed\nschedule (eg. lightning).\n\nCheers,\nRusty.",
"sig": "83c3ed8dbc7066cef2b8c9bad3c22382f9dc6d360e0d9f421f642683a532ad5d379b331f068bee00679fb1e883a10e1a189675835a3767ce7dec2e1beff81237"
}