mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
fix a link and attempt to clarify SIGHASH_SINGLE
This commit is contained in:
parent
e7c9164b7d
commit
0368f10e71
3 changed files with 12 additions and 11 deletions
|
@ -37,7 +37,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 only a single output while allowing the sequence number of other inputs to be updated)
|
||||||
|
|
||||||
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 which signs all of the inputs, but only the one
|
||||||
with the same index value, allowing modification of other inputs
|
output corresponding to this input (the one with the same index value),
|
||||||
and outputs.
|
allowing 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,13 @@ 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
|
signs only the output corresponding to this input (the output
|
||||||
|
with the same output index number as the input), ensuring
|
||||||
nobody can change your part of the transaction but allowing other
|
nobody can change your part of the transaction but allowing other
|
||||||
signers to change their part of the transaction. The corresponding
|
signers to change their part of the transaction. The corresponding
|
||||||
output must exist or the value "1" will be signed, breaking the security
|
output must exist or the value "1" will be signed, breaking the security
|
||||||
scheme.
|
scheme. The sequence numbers of other inputs are not signed 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 +537,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