BIP 174 reformat WIP #953

pull rustyrussell wants to merge 3 commits into bitcoin:master from rustyrussell:bip-178-reformat changing 1 files +119 −226
  1. rustyrussell commented at 5:59 am on July 28, 2020: contributor

    Tried using EBNF to specify the format, and reworked the definitions to explicitly reference this.

    If this works, I’ll rework the rest of the text to use unified <xxx> names as cross-references?

  2. BIP 174: clarify format of proprietary extensions.
    "Variable length string identifier" is not defined anywhere, and the suggestion
    to use "0x00" is also deeply unclear.  I assumed it meant a nul-terminated
    string!
    
    Be explicit: you mean it must be a compact siz1\e unsigned int length, followed
    by that many identifier bytes, followed by a compact size unsigned int subtype,
    followed by optional keydata.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    c4deaf4ae0
  3. BIP 0174: Reformat using EBNF (WIP!) 8fc7ffb8ec
  4. fixup! BIP 0174: Reformat using EBNF (WIP!) 56e1c3698b
  5. sipa commented at 6:19 am on July 28, 2020: member
    I believe the title is wrong here (BIP174, not BIP178).
  6. rustyrussell renamed this:
    BIP 178 reformat WIP
    BIP 174 reformat WIP
    on Jul 28, 2020
  7. in bip-0174.mediawiki:68 in 56e1c3698b
    124+: A compact size unsigned integer representing the type.  This compact size unsigned integer must be minimally encoded, i.e. if the value can be represented using one byte, it must be represented as one byte.  This must be unique within a specific <nowiki><map></nowiki>.
    125+;<tt><nowiki><keylen></nowiki></tt>
    126+: The compact size unsigned integer containing the combined length of <nowiki><keytype></nowiki> and <nowiki><keydata></nowiki>.
    127+;<tt><nowiki><valuelen></nowiki></tt>
    128+: The compact size unsigned integer containing the combined length of <nowiki><valuedata></nowiki>.
    129+;<tt><nowiki><mafic></nowiki></tt>
    


    niftynei commented at 3:46 pm on July 28, 2020:
    0;<tt><nowiki><magic></nowiki></tt>
    
  8. niftynei commented at 3:52 pm on July 28, 2020: none
    spotted a typo!
  9. in bip-0174.mediawiki:110 in 56e1c3698b
    252+** <nowiki><valuedata></nowiki> The transaction in network serialization format the current input spends from. This should only be present for inputs which spend non-segwit outputs. However, if it is unknown whether an input spends a segwit output, this type should be used.
    253+*** <tt><nowiki><transaction></nowiki></tt>
    254+
    255+* <nowiki><keytype></nowiki>: Witness UTXO <tt>PSBT_IN_WITNESS_UTXO = 0x01</tt>
    256+** <nowiki><keydata></nowiki>: None.
    257+** <nowiki><valuedata></nowiki> The entire transaction output in network serialization which the current input spends from. This should only be present for inputs which spend segwit outputs, including P2SH embedded ones.
    


    niftynei commented at 3:53 pm on July 28, 2020:
    0** <nowiki><valuedata></nowiki> The entire transaction output (amount + scriptPubkey) in network serialization which the current input spends from. This should only be present for inputs which spend segwit outputs, including P2SH embedded ones.
    
  10. luke-jr commented at 2:48 am on August 1, 2020: member
  11. luke-jr added the label Proposed BIP modification on Aug 1, 2020
  12. Sjors commented at 10:50 am on April 30, 2021: member
    If there’s anything left to do here after #1055, it needs rebase…
  13. murchandamus commented at 5:53 pm on April 24, 2024: contributor
    @rustyrussell: Are you still working on this?
  14. murchandamus added the label PR Author action required on May 8, 2024
  15. murchandamus commented at 5:32 pm on May 20, 2024: contributor
    I see that discussion on #1055 mentions that many of the changes proposed in this PR were incorporated in #1055. Since this PR has had unaddressed review comments for almost four years, and there was no response in the past almost four weeks whether it is still in progress, I assume this PR is either obsolete or abandoned. If that is an incorrect assessment, please let us know so we can either reopen this PR, or just open a new PR.
  16. murchandamus closed this on May 20, 2024


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bips. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-23 08:10 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me