mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
Merge pull #922: DevDocs: update a mis-directed link and clarify SIGHASH_SINGLE definitions
This commit is contained in:
commit
84444431a6
3 changed files with 17 additions and 16 deletions
|
@ -7,8 +7,7 @@ required:
|
||||||
title_max_40_characters_no_formatting: SIGHASH_ANYONECANPAY
|
title_max_40_characters_no_formatting: SIGHASH_ANYONECANPAY
|
||||||
|
|
||||||
summary_max_255_characters_no_formatting: >
|
summary_max_255_characters_no_formatting: >
|
||||||
A signature hash type which modifies the behavior of other signature hash types
|
A signature hash type which signs only the current input.
|
||||||
to allow signing only the current input.
|
|
||||||
|
|
||||||
synonyms_shown_in_glossary_capitalize_first_letter:
|
synonyms_shown_in_glossary_capitalize_first_letter:
|
||||||
- SIGHASH_ANYONECANPAY
|
- SIGHASH_ANYONECANPAY
|
||||||
|
@ -37,7 +36,7 @@ optional:
|
||||||
- "`sighash_single|sighash_anyonecanpay`"
|
- "`sighash_single|sighash_anyonecanpay`"
|
||||||
|
|
||||||
not_to_be_confused_with_capitalize_first_letter:
|
not_to_be_confused_with_capitalize_first_letter:
|
||||||
- SIGHASH_SINGLE (which signs only a single input, like SIGHASH_ANYONECANPAY, but also signs a single output)
|
- SIGHASH_SINGLE (which signs this input, its corresponding output, and other inputs partially)
|
||||||
|
|
||||||
links_html_or_markdown_style_capitalize_first_letter:
|
links_html_or_markdown_style_capitalize_first_letter:
|
||||||
- "[SIGHASH_ANYONECANPAY](/en/developer-guide#term-sighash-anyonecanpay) --- Bitcoin.org Developer Guide"
|
- "[SIGHASH_ANYONECANPAY](/en/developer-guide#term-sighash-anyonecanpay) --- Bitcoin.org Developer Guide"
|
||||||
|
|
|
@ -7,9 +7,10 @@ required:
|
||||||
title_max_40_characters_no_formatting: SIGHASH_SINGLE
|
title_max_40_characters_no_formatting: SIGHASH_SINGLE
|
||||||
|
|
||||||
summary_max_255_characters_no_formatting: >
|
summary_max_255_characters_no_formatting: >
|
||||||
Signature hash type which only signs its input and the output
|
Signature hash type that signs the output corresponding to this input
|
||||||
with the same index value, allowing modification of other inputs
|
(the one with the same index value), this input, and any other inputs
|
||||||
and outputs.
|
partially. Allows modification of other outputs and the sequence number
|
||||||
|
of other inputs.
|
||||||
|
|
||||||
synonyms_shown_in_glossary_capitalize_first_letter:
|
synonyms_shown_in_glossary_capitalize_first_letter:
|
||||||
- SIGHASH_SINGLE
|
- SIGHASH_SINGLE
|
||||||
|
@ -19,7 +20,7 @@ optional:
|
||||||
- "`SIGHASH_SINGLE`"
|
- "`SIGHASH_SINGLE`"
|
||||||
|
|
||||||
not_to_be_confused_with_capitalize_first_letter:
|
not_to_be_confused_with_capitalize_first_letter:
|
||||||
- SIGHASH_ANYONECANPAY (a flag to signature hash types that only signs a single input, like SIGHASH_SINGLE, but which doesn't sign any outputs.)
|
- SIGHASH_ANYONECANPAY (a flag to signature hash types that only signs this single input)
|
||||||
|
|
||||||
links_html_or_markdown_style_capitalize_first_letter:
|
links_html_or_markdown_style_capitalize_first_letter:
|
||||||
- "[`SIGHASH_SINGLE`](/en/developer-guide#term-sighash-single) --- Bitcoin.org Developer Guide"
|
- "[`SIGHASH_SINGLE`](/en/developer-guide#term-sighash-single) --- Bitcoin.org Developer Guide"
|
||||||
|
|
|
@ -517,12 +517,14 @@ currently available:
|
||||||
allowing anyone to change where the satoshis are going unless other
|
allowing anyone to change where the satoshis are going unless other
|
||||||
signatures using other signature hash flags protect the outputs.
|
signatures using other signature hash flags protect the outputs.
|
||||||
|
|
||||||
* [`SIGHASH_SINGLE`][/en/glossary/sighash-none]{:#term-sighash-single}{:.term} signs only this input and only one corresponding
|
* [`SIGHASH_SINGLE`][/en/glossary/sighash-single]{:#term-sighash-single}{:.term}
|
||||||
output (the output with the same output index number as the input), ensuring
|
the only output signed is the one corresponding to this input (the output
|
||||||
nobody can change your part of the transaction but allowing other
|
with the same output index number as this input), ensuring nobody can change
|
||||||
signers to change their part of the transaction. The corresponding
|
your part of the transaction but allowing other signers to change their part
|
||||||
output must exist or the value "1" will be signed, breaking the security
|
of the transaction. The corresponding output must exist or the value "1" will
|
||||||
scheme.
|
be signed, breaking the security scheme. This input, as well as other inputs,
|
||||||
|
are included in the signature. The sequence numbers of other inputs are not
|
||||||
|
included in the signature, and can be updated.
|
||||||
|
|
||||||
The base types can be modified with the [`SIGHASH_ANYONECANPAY`][/en/glossary/sighash-anyonecanpay]{:#term-sighash-anyonecanpay}{:.term} (anyone can
|
The base types can be modified with the [`SIGHASH_ANYONECANPAY`][/en/glossary/sighash-anyonecanpay]{:#term-sighash-anyonecanpay}{:.term} (anyone can
|
||||||
pay) flag, creating three new combined types:
|
pay) flag, creating three new combined types:
|
||||||
|
@ -536,9 +538,8 @@ pay) flag, creating three new combined types:
|
||||||
allows anyone to add or remove other inputs or outputs, so anyone who
|
allows anyone to add or remove other inputs or outputs, so anyone who
|
||||||
gets a copy of this input can spend it however they'd like.
|
gets a copy of this input can spend it however they'd like.
|
||||||
|
|
||||||
* `SIGHASH_SINGLE|SIGHASH_ANYONECANPAY` signs only this input and only
|
* `SIGHASH_SINGLE|SIGHASH_ANYONECANPAY` signs this one input and its
|
||||||
one corresponding output, but it also allows anyone to add or remove
|
corresponding output. Allows anyone to add or remove other inputs.
|
||||||
other inputs.
|
|
||||||
|
|
||||||
Because each input is signed, a transaction with multiple inputs can
|
Because each input is signed, a transaction with multiple inputs can
|
||||||
have multiple signature hash types signing different parts of the transaction. For
|
have multiple signature hash types signing different parts of the transaction. For
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue