<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <updated></updated>
  <generator>https://nostr.ae</generator>

  <title>Nostr notes by </title>
  <author>
    <name></name>
  </author>
  <link rel="self" type="application/atom+xml" href="https://nostr.ae/npub1nr02dq8fsgnt758nyp29waulhwwhj6j9gmlsqsknlwjem2hu8twqp0hypj.rss" />
  <link href="https://nostr.ae/npub1nr02dq8fsgnt758nyp29waulhwwhj6j9gmlsqsknlwjem2hu8twqp0hypj" />
  <id>https://nostr.ae/npub1nr02dq8fsgnt758nyp29waulhwwhj6j9gmlsqsknlwjem2hu8twqp0hypj</id>
  <icon></icon>
  <logo></logo>




  <entry>
    <id>https://nostr.ae/nevent1qqs9vqa68qf3xx2l4s4zt8mx2afc6casf3h6tzv5j20sx446pmj853szyzvdaf5qaxpzd06s7vs9g4mhn7ae67t2g4r07qzz60a6t8d2lsadcuhz6vc</id>
    
      <title type="html">📅 Original date posted:2022-08-25 📝 Original message:Having ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqs9vqa68qf3xx2l4s4zt8mx2afc6casf3h6tzv5j20sx446pmj853szyzvdaf5qaxpzd06s7vs9g4mhn7ae67t2g4r07qzz60a6t8d2lsadcuhz6vc" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqstsatyd7ld706d0fvuewam8fjflcmnfax0ngc0yf9p5ael5t0vgscv73qjh&#39;&gt;nevent1q…3qjh&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2022-08-25&lt;br/&gt;📝 Original message:Having previously developed an export format[1] for general cryptocurrency transaction information, I can attest to the value of the human-readable CSV. I was careful to mention the RFC 4180 spec so that implementations could avoid the pitfalls of incorrect CSV encoding.&lt;br/&gt;&lt;br/&gt;[1]: &lt;a href=&#34;https://github.com/harmony-csv/harmony&#34;&gt;https://github.com/harmony-csv/harmony&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Clark&lt;br/&gt;&lt;br/&gt;------- Original Message -------&lt;br/&gt;On Thursday, August 25th, 2022 at 3:59 AM, Craig Raw via bitcoin-dev &amp;lt;bitcoin-dev at lists.linuxfoundation.org&amp;gt; wrote:&lt;br/&gt;&lt;br/&gt;&amp;gt; Thanks for your thoughts Ryan.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Without reference to the quality feedback on this proposal, I was aware when submitting it for review that it provides an excellent opportunity for bike shedding. As developers, we have all experienced frustration with data formats. One thing that I did not perhaps make clear enough is that this format is not solely intended for developers, but general users who are probably not well represented on this list.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; While doing research for this proposal I spoke to several professional users of Sparrow Wallet (who are not developers). They all expressed a desire for the format to integrate with their business processes, which are driven by business tools such as Excel. Labelling provides an important function in UTXO and address management in these scenarios, and needs to be accessible and manageable outside of wallet software.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; If this is to be achieved, it immediately rules out JSON as a data format. Not only is JSON limited to editing only through specific software or text editors, but (in the latter case) it is fragile enough that a single missing character can cause an entire file to fail parsing. CSV is more forgiving in this regard. With respect to your comments on escaping, my expectation would be that developers will be using a mature CSV library rather than handling character escaping themselves. I would rather propose a format that is generally usable, even if occasionally a label is escaped incorrectly.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Finally, I&amp;#39;ll note that CSV files are already common and uncontroversial in Bitcoin wallet software. Bitcoin Core, Electrum, Sparrow (and no doubt many others) already export addresses and/or transactions with their labels as CSV files. This proposal simply attempts to create a standard for importing and exporting all the labels in a wallet.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Craig&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; On Wed, Aug 24, 2022 at 9:01 PM &amp;lt;rhavar at protonmail.com&amp;gt; wrote:&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; I&amp;#39;d strongly suggest not using CSV. Especially for a standard. I&amp;#39;ve worked with it as an interchange format many a times, and it&amp;#39;s always been a clusterfuck.&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; Right off the bat, you have stuff like &amp;#34;The fields may be quoted, but this is unnecessary as the first comma in the line will always be the delimiter&amp;#34; which invariably leads to some implementations doing it, some implementations not doing it, and others that are intolerant of the other way.&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; And you have also made the classic mistake of not strictly defining escape rules. So everyone will pick their own (e.g. some will \, escape commas, others will not cause it&amp;#39;s quoted and escape quotes, and others will assume no escaping is required since its the last column in a csv).&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; Over time it morphs into its own mini-monster that introduces so much pain.&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; On a similar note, allowing alternatives (like: txid&amp;gt;index vs txid:index) provides no benefit, but creates additional work for implementations (who quite likely only test formats they produce) and future incompatibilities.&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; I know everyone loves to hate on it, but really (line-separated?) json is the way to go.&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; { &amp;#34;tx&amp;#34;: &amp;#34;c3bdad6e7dcd7997e16a5b7b7cf4d8f6079820ff2eedd5fcbb2ad088f767b37b‎&amp;#34;, &amp;#34;label&amp;#34;: &amp;#34;wow, such label&amp;#34; }&lt;br/&gt;&amp;gt;&amp;gt; { &amp;#34;tx: &amp;#34;c3bdad6e7dcd7997e16a5b7b7cf4d8f6079820ff2eedd5fcbb2ad088f767b37b&amp;#34;, &amp;#34;txout&amp;#34;: 4, &amp;#34;label&amp;#34;: &amp;#34;omg this is so easy to parse&amp;#34; }&lt;br/&gt;&amp;gt;&amp;gt; { &amp;#34;tx: &amp;#34;c3bdad6e7dcd7997e16a5b7b7cf4d8f6079820ff2eedd5fcbb2ad088f767b37b&amp;#34;, &amp;#34;txin&amp;#34;: 0, &amp;#34;label&amp;#34;: &amp;#34;wow this is going to be extensible as well&amp;#34; }&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; -Ryan&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; ------- Original Message -------&lt;br/&gt;&amp;gt;&amp;gt; On Wednesday, August 24th, 2022 at 2:18 AM, Craig Raw via bitcoin-dev &amp;lt;bitcoin-dev at lists.linuxfoundation.org&amp;gt; wrote:&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Hi all,&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; I would like to propose a BIP that specifies a format for the export and import of labels from a wallet. While transferring access to funds across wallet applications has been made simple through standards such as BIP39, wallet labels remain siloed and difficult to extract despite their value, particularly in a privacy context.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; The proposed format is a simple two column CSV file, with the reference to a transaction, address, input or output in the first column, and the label in the second column. CSV was chosen for its wide accessibility, especially to users without specific technical expertise. Similarly, the CSV file may be compressed using the ZIP format, and optionally encrypted using AES.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; The full text of the BIP can be found at &lt;a href=&#34;https://github.com/craigraw/bips/blob/master/bip-wallet-labels.mediawiki&#34;&gt;https://github.com/craigraw/bips/blob/master/bip-wallet-labels.mediawiki&lt;/a&gt; and also copied below.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Feedback is appreciated.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Thanks,&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Craig Raw&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ---&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;pre&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; BIP: wallet-labels&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Layer: Applications&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Title: Wallet Labels Export Format&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Author: Craig Raw &amp;lt;craig at sparrowwallet.com&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Comments-Summary: No comments yet.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Comments-URI: &lt;a href=&#34;https://github.com/bitcoin/bips/wiki/Comments:BIP-wallet-labels&#34;&gt;https://github.com/bitcoin/bips/wiki/Comments:BIP-wallet-labels&lt;/a&gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Status: Draft&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Type: Informational&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Created: 2022-08-23&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; License: BSD-2-Clause&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;/pre&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ==Abstract==&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; This document specifies a format for the export of labels that may be attached to the transactions, addresses, input and outputs in a wallet.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ==Copyright==&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; This BIP is licensed under the BSD 2-clause license.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ==Motivation==&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; The export and import of funds across different Bitcoin wallet applications is well defined through standards such as BIP39, BIP32, BIP44 etc.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; These standards are well supported and allow users to move easily between different wallets.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; There is, however, no defined standard to transfer any labels the user may have applied to the transactions, addresses, inputs or outputs in their wallet.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; The UTXO model that Bitcoin uses makes these labels particularly valuable as they may indicate the source of funds, whether received externally or as a result of change from a prior transaction.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; In both cases, care must be taken when spending to avoid undesirable leaks of private information.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Labels provide valuable guidance in this regard, and have even become mandatory when spending in several Bitcoin wallets.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Allowing users to export their labels in a standardized way ensures that they do not experience lock-in to a particular wallet application.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; In addition, by using common formats, this BIP seeks to make manual or bulk management of labels accessible to users without specific technical expertise.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ==Specification==&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; In order to make the import and export of labels as widely accessible as possible, this BIP uses the comma separated values (CSV) format, which is widely supported by consumer, business, and scientific applications.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Although the technical specification of CSV in RFC4180 is not always followed, the application of the format in this BIP is simple enough that compatibility should not present a problem.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Moreover, the simplicity and forgiving nature of CSV (over for example JSON) lends itself well to bulk label editing using spreadsheet and text editing tools.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; A CSV export of labels from a wallet must be a UTF-8 encoded text file, containing one record per line, with records containing two fields delimited by a comma.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; The fields may be quoted, but this is unnecessary, as the first comma in the line will always be the delimiter.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; The first line in the file is a header, and should be ignored on import.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Thereafter, each line represents a record that refers to a label applied in the wallet.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; The order in which these records appear is not defined.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; The first field in the record contains a reference to the transaction, address, input or output in the wallet.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; This is specified as one of the following:&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; * Transaction ID (&amp;lt;tt&amp;gt;txid&amp;lt;/tt&amp;gt;)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; * Address&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; * Input (rendered as &amp;lt;tt&amp;gt;txid&amp;lt;index&amp;lt;/tt&amp;gt;)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; * Output (rendered as &amp;lt;tt&amp;gt;txid&amp;gt;index&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;txid:index&amp;lt;/tt&amp;gt;)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; The second field contains the label applied to the reference.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Exporting applications may omit records with no labels or labels of zero length.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Files exported should use the &amp;lt;tt&amp;gt;.csv&amp;lt;/tt&amp;gt; file extension.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; In order to reduce file size while retaining wide accessibility, the CSV file may be compressed using the ZIP file format, using the &amp;lt;tt&amp;gt;.zip&amp;lt;/tt&amp;gt; file extension.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; This &amp;lt;tt&amp;gt;.zip&amp;lt;/tt&amp;gt; file may optionally be encrypted using either AES-128 or AES-256 encryption, which is supported by numerous applications including Winzip and 7-zip.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; In order to ensure that weak encryption does not proliferate, importers following this standard must refuse to import &amp;lt;tt&amp;gt;.zip&amp;lt;/tt&amp;gt; files encrypted with the weaker Zip 2.0 standard.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; The textual representation of the wallet&amp;#39;s extended public key (as defined by BIP32, with an &amp;lt;tt&amp;gt;xpub&amp;lt;/tt&amp;gt; header) should be used as the password.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ==Importing==&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; When importing, a naive algorithm may simply match against any reference, but it is possible to disambiguate between transactions, addresses, inputs and outputs.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; For example in the following pseudocode:&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;pre&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; if reference length &amp;lt; 64&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Set address label&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; else if reference length == 64&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Set transaction label&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; else if reference contains &amp;#39;&amp;lt;&amp;#39;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Set input label&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; else&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Set output label&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;/pre&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Importing applications may truncate labels if necessary.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ==Test Vectors==&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; The following fragment represents a wallet label export:&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;pre&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Reference,Label&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; c3bdad6e7dcd7997e16a5b7b7cf4d8f6079820ff2eedd5fcbb2ad088f767b37b‎,Transaction&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; 1A69TXnEM2ms9fMaY9UuiJ7415X7xZaUSg,Address&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; c3bdad6e7dcd7997e16a5b7b7cf4d8f6079820ff2eedd5fcbb2ad088f767b37b‎&amp;lt;0,Input&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; c3bdad6e7dcd7997e16a5b7b7cf4d8f6079820ff2eedd5fcbb2ad088f767b37b‎&amp;gt;0,Output&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; c3bdad6e7dcd7997e16a5b7b7cf4d8f6079820ff2eedd5fcbb2ad088f767b37b‎:0,Output (alternative)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;/pre&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ==Reference Implementation==&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; TBD&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20220825/20dfb197/attachment-0001.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20220825/20dfb197/attachment-0001.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-07T23:13:07Z</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqs0pxvkgx6swny3y7kp5xt076h5hl0p43ss6f3fzf755y3rh9ufnqszyzvdaf5qaxpzd06s7vs9g4mhn7ae67t2g4r07qzz60a6t8d2lsadc3narr8</id>
    
      <title type="html">📅 Original date posted:2022-08-24 📝 Original message:Craig, ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqs0pxvkgx6swny3y7kp5xt076h5hl0p43ss6f3fzf755y3rh9ufnqszyzvdaf5qaxpzd06s7vs9g4mhn7ae67t2g4r07qzz60a6t8d2lsadc3narr8" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsx0mjhswan7762g66ymjyq7dzc0lzxhr230m028ygqtfushpskchqk5lpu7&#39;&gt;nevent1q…lpu7&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2022-08-24&lt;br/&gt;📝 Original message:Craig,&lt;br/&gt;&lt;br/&gt;Thanks for the proposal.&lt;br/&gt;&lt;br/&gt;How does this proposal compare with SLIP-0015, which provides encryption by default? Would it be worth exploring a merge of the two approaches?&lt;br/&gt;&lt;br/&gt;&lt;a href=&#34;https://github.com/satoshilabs/slips/blob/master/slip-0015.md&#34;&gt;https://github.com/satoshilabs/slips/blob/master/slip-0015.md&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Clark&lt;br/&gt;&lt;br/&gt;------- Original Message -------&lt;br/&gt;On Wednesday, August 24th, 2022 at 4:18 AM, Craig Raw via bitcoin-dev &amp;lt;bitcoin-dev at lists.linuxfoundation.org&amp;gt; wrote:&lt;br/&gt;&lt;br/&gt;&amp;gt; Hi all,&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; I would like to propose a BIP that specifies a format for the export and import of labels from a wallet. While transferring access to funds across wallet applications has been made simple through standards such as BIP39, wallet labels remain siloed and difficult to extract despite their value, particularly in a privacy context.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; The proposed format is a simple two column CSV file, with the reference to a transaction, address, input or output in the first column, and the label in the second column. CSV was chosen for its wide accessibility, especially to users without specific technical expertise. Similarly, the CSV file may be compressed using the ZIP format, and optionally encrypted using AES.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; The full text of the BIP can be found at &lt;a href=&#34;https://github.com/craigraw/bips/blob/master/bip-wallet-labels.mediawiki&#34;&gt;https://github.com/craigraw/bips/blob/master/bip-wallet-labels.mediawiki&lt;/a&gt; and also copied below.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Feedback is appreciated.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Thanks,&lt;br/&gt;&amp;gt; Craig Raw&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; ---&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; &amp;lt;pre&amp;gt;&lt;br/&gt;&amp;gt; BIP: wallet-labels&lt;br/&gt;&amp;gt; Layer: Applications&lt;br/&gt;&amp;gt; Title: Wallet Labels Export Format&lt;br/&gt;&amp;gt; Author: Craig Raw &amp;lt;craig at sparrowwallet.com&amp;gt;&lt;br/&gt;&amp;gt; Comments-Summary: No comments yet.&lt;br/&gt;&amp;gt; Comments-URI: &lt;a href=&#34;https://github.com/bitcoin/bips/wiki/Comments:BIP-wallet-labels&#34;&gt;https://github.com/bitcoin/bips/wiki/Comments:BIP-wallet-labels&lt;/a&gt;&lt;br/&gt;&amp;gt; Status: Draft&lt;br/&gt;&amp;gt; Type: Informational&lt;br/&gt;&amp;gt; Created: 2022-08-23&lt;br/&gt;&amp;gt; License: BSD-2-Clause&lt;br/&gt;&amp;gt; &amp;lt;/pre&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; ==Abstract==&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; This document specifies a format for the export of labels that may be attached to the transactions, addresses, input and outputs in a wallet.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; ==Copyright==&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; This BIP is licensed under the BSD 2-clause license.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; ==Motivation==&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; The export and import of funds across different Bitcoin wallet applications is well defined through standards such as BIP39, BIP32, BIP44 etc.&lt;br/&gt;&amp;gt; These standards are well supported and allow users to move easily between different wallets.&lt;br/&gt;&amp;gt; There is, however, no defined standard to transfer any labels the user may have applied to the transactions, addresses, inputs or outputs in their wallet.&lt;br/&gt;&amp;gt; The UTXO model that Bitcoin uses makes these labels particularly valuable as they may indicate the source of funds, whether received externally or as a result of change from a prior transaction.&lt;br/&gt;&amp;gt; In both cases, care must be taken when spending to avoid undesirable leaks of private information.&lt;br/&gt;&amp;gt; Labels provide valuable guidance in this regard, and have even become mandatory when spending in several Bitcoin wallets.&lt;br/&gt;&amp;gt; Allowing users to export their labels in a standardized way ensures that they do not experience lock-in to a particular wallet application.&lt;br/&gt;&amp;gt; In addition, by using common formats, this BIP seeks to make manual or bulk management of labels accessible to users without specific technical expertise.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; ==Specification==&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; In order to make the import and export of labels as widely accessible as possible, this BIP uses the comma separated values (CSV) format, which is widely supported by consumer, business, and scientific applications.&lt;br/&gt;&amp;gt; Although the technical specification of CSV in RFC4180 is not always followed, the application of the format in this BIP is simple enough that compatibility should not present a problem.&lt;br/&gt;&amp;gt; Moreover, the simplicity and forgiving nature of CSV (over for example JSON) lends itself well to bulk label editing using spreadsheet and text editing tools.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; A CSV export of labels from a wallet must be a UTF-8 encoded text file, containing one record per line, with records containing two fields delimited by a comma.&lt;br/&gt;&amp;gt; The fields may be quoted, but this is unnecessary, as the first comma in the line will always be the delimiter.&lt;br/&gt;&amp;gt; The first line in the file is a header, and should be ignored on import.&lt;br/&gt;&amp;gt; Thereafter, each line represents a record that refers to a label applied in the wallet.&lt;br/&gt;&amp;gt; The order in which these records appear is not defined.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; The first field in the record contains a reference to the transaction, address, input or output in the wallet.&lt;br/&gt;&amp;gt; This is specified as one of the following:&lt;br/&gt;&amp;gt; * Transaction ID (&amp;lt;tt&amp;gt;txid&amp;lt;/tt&amp;gt;)&lt;br/&gt;&amp;gt; * Address&lt;br/&gt;&amp;gt; * Input (rendered as &amp;lt;tt&amp;gt;txid&amp;lt;index&amp;lt;/tt&amp;gt;)&lt;br/&gt;&amp;gt; * Output (rendered as &amp;lt;tt&amp;gt;txid&amp;gt;index&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;txid:index&amp;lt;/tt&amp;gt;)&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; The second field contains the label applied to the reference.&lt;br/&gt;&amp;gt; Exporting applications may omit records with no labels or labels of zero length.&lt;br/&gt;&amp;gt; Files exported should use the &amp;lt;tt&amp;gt;.csv&amp;lt;/tt&amp;gt; file extension.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; In order to reduce file size while retaining wide accessibility, the CSV file may be compressed using the ZIP file format, using the &amp;lt;tt&amp;gt;.zip&amp;lt;/tt&amp;gt; file extension.&lt;br/&gt;&amp;gt; This &amp;lt;tt&amp;gt;.zip&amp;lt;/tt&amp;gt; file may optionally be encrypted using either AES-128 or AES-256 encryption, which is supported by numerous applications including Winzip and 7-zip.&lt;br/&gt;&amp;gt; In order to ensure that weak encryption does not proliferate, importers following this standard must refuse to import &amp;lt;tt&amp;gt;.zip&amp;lt;/tt&amp;gt; files encrypted with the weaker Zip 2.0 standard.&lt;br/&gt;&amp;gt; The textual representation of the wallet&amp;#39;s extended public key (as defined by BIP32, with an &amp;lt;tt&amp;gt;xpub&amp;lt;/tt&amp;gt; header) should be used as the password.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; ==Importing==&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; When importing, a naive algorithm may simply match against any reference, but it is possible to disambiguate between transactions, addresses, inputs and outputs.&lt;br/&gt;&amp;gt; For example in the following pseudocode:&lt;br/&gt;&amp;gt; &amp;lt;pre&amp;gt;&lt;br/&gt;&amp;gt; if reference length &amp;lt; 64&lt;br/&gt;&amp;gt; Set address label&lt;br/&gt;&amp;gt; else if reference length == 64&lt;br/&gt;&amp;gt; Set transaction label&lt;br/&gt;&amp;gt; else if reference contains &amp;#39;&amp;lt;&amp;#39;&lt;br/&gt;&amp;gt; Set input label&lt;br/&gt;&amp;gt; else&lt;br/&gt;&amp;gt; Set output label&lt;br/&gt;&amp;gt; &amp;lt;/pre&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Importing applications may truncate labels if necessary.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; ==Test Vectors==&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; The following fragment represents a wallet label export:&lt;br/&gt;&amp;gt; &amp;lt;pre&amp;gt;&lt;br/&gt;&amp;gt; Reference,Label&lt;br/&gt;&amp;gt; c3bdad6e7dcd7997e16a5b7b7cf4d8f6079820ff2eedd5fcbb2ad088f767b37b‎,Transaction&lt;br/&gt;&amp;gt; 1A69TXnEM2ms9fMaY9UuiJ7415X7xZaUSg,Address&lt;br/&gt;&amp;gt; c3bdad6e7dcd7997e16a5b7b7cf4d8f6079820ff2eedd5fcbb2ad088f767b37b‎&amp;lt;0,Input&lt;br/&gt;&amp;gt; c3bdad6e7dcd7997e16a5b7b7cf4d8f6079820ff2eedd5fcbb2ad088f767b37b‎&amp;gt;0,Output&lt;br/&gt;&amp;gt; c3bdad6e7dcd7997e16a5b7b7cf4d8f6079820ff2eedd5fcbb2ad088f767b37b‎:0,Output (alternative)&lt;br/&gt;&amp;gt; &amp;lt;/pre&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; ==Reference Implementation==&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; TBD&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20220824/2c3e56ea/attachment.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20220824/2c3e56ea/attachment.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-07T23:13:01Z</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqs9f3rc0xfy7scnmr7ch4cu0y8hv7edr7q6pr6uzh2dyp9m76vjzkqzyzvdaf5qaxpzd06s7vs9g4mhn7ae67t2g4r07qzz60a6t8d2lsadcwda296</id>
    
      <title type="html">📅 Original date posted:2018-05-03 📝 Original message:Paul, ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqs9f3rc0xfy7scnmr7ch4cu0y8hv7edr7q6pr6uzh2dyp9m76vjzkqzyzvdaf5qaxpzd06s7vs9g4mhn7ae67t2g4r07qzz60a6t8d2lsadcwda296" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsvd2cs26wlaarkqusv6jjulp4v5cygdlep40vl3t9qmuvtnzktx7cf0hc2v&#39;&gt;nevent1q…hc2v&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2018-05-03&lt;br/&gt;📝 Original message:Paul,&lt;br/&gt;&lt;br/&gt;The current BIP-49 / 84 use the purpose field of the derivation path to specify&lt;br/&gt;the address format.&lt;br/&gt;&lt;br/&gt;​I think sticking with the one-BIP-one-format method works. Otherwise, you&lt;br/&gt;would need to modify this proposed BIP each time a new format comes along.&lt;br/&gt;In that case, existing wallets that claim BIP-XXXX compliance will be&lt;br/&gt;incomplete.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;-Clark&lt;br/&gt;&lt;br/&gt;On Thu, Apr 26, 2018 at 9:05 AM, Paul Brown &amp;lt;paul at 345.systems&amp;gt; wrote:&lt;br/&gt;&lt;br/&gt;&amp;gt; Hi&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; I realised after I sent my previous response that the encoding was wrong&lt;br/&gt;&amp;gt; and that my smiley face at the end of the BIP number comment got turned&lt;br/&gt;&amp;gt; into a ? and the tongue in cheek context was lost :-(&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Anyway, back onto subject.  I&amp;#39;ve been thinking some more on the SLIP-0032&lt;br/&gt;&amp;gt; adoption in this proposal and specifically the address format to use when&lt;br/&gt;&amp;gt; generating addresses.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; My proposal states bech32 serialized addresses (P2WPKH or P2WSH), however,&lt;br/&gt;&amp;gt; I wonder whether there is some merit in extending the derivation path with&lt;br/&gt;&amp;gt; an additional level below coin type to represent the address format, with&lt;br/&gt;&amp;gt; the value determined by the context of the coin type value in the&lt;br/&gt;&amp;gt; derivation path (0x00 for P2WPKH bech32, 0x01 for P2PKH base58 if coin type&lt;br/&gt;&amp;gt; is Bitcoin, 0x00 for Ethereum account format if coin type is Ether, etc).&lt;br/&gt;&amp;gt; A separate spec similar to SLIP-0044 could be created that defines the list&lt;br/&gt;&amp;gt; of address formats and the derivation path values.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; When importing root master seeds or distributing the xpub&amp;#39;s for each&lt;br/&gt;&amp;gt; cosigner to each party the discovery process in the proposal would need&lt;br/&gt;&amp;gt; extending to try each address format in turn to determine whether there is&lt;br/&gt;&amp;gt; a &amp;#39;hit&amp;#39; when checking balances.  It does mean that the import process is&lt;br/&gt;&amp;gt; slower however the additional flexibility of supporting multiple address&lt;br/&gt;&amp;gt; formats possibly outweighs this.  I&amp;#39;m just thinking that having a rule to&lt;br/&gt;&amp;gt; follow during discovery, particularly where non-Bitcoin coins are&lt;br/&gt;&amp;gt; concerned, is more explicit than leaving it open to the wallet implementer&lt;br/&gt;&amp;gt; to figure out (for altcoins, what address format to use?).&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; It also means that future address formats are supported as they are simply&lt;br/&gt;&amp;gt; added to the new spec list for the coin type (can be done by anyone,&lt;br/&gt;&amp;gt; similar to the way SLIP-0044 works now) - it doesn&amp;#39;t require a new BIP to&lt;br/&gt;&amp;gt; support.  For example, if address format was a derivation level in BIP44,&lt;br/&gt;&amp;gt; would BIP49 and BIP84 be needed?&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; I&amp;#39;m somewhat musing out loud here, but I like the idea of being able to&lt;br/&gt;&amp;gt; mostly self-discover as much as possible and reducing or eliminating the&lt;br/&gt;&amp;gt; need for proprietary metadata attached to the wallet.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Cheers&lt;br/&gt;&amp;gt; Paul&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; From: clarkmoody at gmail.com &amp;lt;clarkmoody at gmail.com&amp;gt; On Behalf Of Clark Moody&lt;br/&gt;&amp;gt; Sent: 25 April 2018 15:36&lt;br/&gt;&amp;gt; To: Paul Brown &amp;lt;paul at 345.systems&amp;gt;; Bitcoin Protocol Discussion &amp;lt;&lt;br/&gt;&amp;gt; bitcoin-dev at lists.linuxfoundation.org&amp;gt;&lt;br/&gt;&amp;gt; Subject: Re: [bitcoin-dev] Multi-signature and multi-coin HD wallet in one&lt;br/&gt;&amp;gt; BIP32 derivation path (new BIP)&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Thanks for the proposal, Paul.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; &amp;gt; - What address format is expected when discovering balances and creating&lt;br/&gt;&amp;gt; transactions?&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Your solution does not solve your first bullet point, since the xpub&lt;br/&gt;&amp;gt; encoding looks no different than any other xpub (BIP 44, 45, 49, etc). At&lt;br/&gt;&amp;gt; the least, you should propose new version bytes to change the &amp;#34;xpub&amp;#34; in the&lt;br/&gt;&amp;gt; encoding to some other string.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Alternatively, I would suggest that you use the xpub serialization format&lt;br/&gt;&amp;gt; described in SLIP-0032 (&lt;br/&gt;&amp;gt; &lt;a href=&#34;https://github.com/satoshilabs/slips/blob/master/slip-0032.md&#34;&gt;https://github.com/satoshilabs/slips/blob/master/slip-0032.md&lt;/a&gt;). It&lt;br/&gt;&amp;gt; includes the derivation path within the xpub itself and uses Bech32 for&lt;br/&gt;&amp;gt; encoding.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Given a normal xpub with no additional information, a wallet must scan the&lt;br/&gt;&amp;gt; address space for the various formats. SLIP-0032 solves this bootstrapping&lt;br/&gt;&amp;gt; problem and avoids the UX nightmare of users being required to know to&lt;br/&gt;&amp;gt; which BIP number the xpub conforms.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Also, @luke-jr will give you a hard time to self-assigning a BIP number ;-)&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Thanks&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; -Clark&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; On Wed, Apr 25, 2018 at 4:35 AM, Paul Brown via bitcoin-dev &amp;lt;mailto:&lt;br/&gt;&amp;gt; bitcoin-dev at lists.linuxfoundation.org&amp;gt; wrote:&lt;br/&gt;&amp;gt; Hi&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; I have written a new BIP describing a BIP32 derivation path that supports&lt;br/&gt;&amp;gt; a single or multi-signature and multi-coin wallet from a single master&lt;br/&gt;&amp;gt; seed.  It combines BIP44 and BIP45 and adds in a self-describing structure&lt;br/&gt;&amp;gt; in the derivation path for multiple multi-sig combinations within the&lt;br/&gt;&amp;gt; single wallet along with an extended public key export file format for&lt;br/&gt;&amp;gt; public key distribution between parties.  I can particularly see this being&lt;br/&gt;&amp;gt; useful for multiple Lightning Network 2of2 accounts for different payment&lt;br/&gt;&amp;gt; channels.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; The BIP can be found here:&lt;br/&gt;&amp;gt; &lt;a href=&#34;https://github.com/gluexchange/bip/blob/master/bip-0046.mediawiki&#34;&gt;https://github.com/gluexchange/bip/blob/master/bip-0046.mediawiki&lt;/a&gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; I appreciate that this might be re-hashing old ground as BIP44 in&lt;br/&gt;&amp;gt; particular has been widely adopted, however, BIP44 does leave itself open&lt;br/&gt;&amp;gt; to a lot of interpretation from a wallet portability perspective such as:&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; - What address format is expected when discovering balances and creating&lt;br/&gt;&amp;gt; transactions?&lt;br/&gt;&amp;gt; - Does the master seed represent a single-sig or multi-sig wallet?&lt;br/&gt;&amp;gt; - If multi-sig, how many cosigners and what are their extended public keys&lt;br/&gt;&amp;gt; (so that the wallet can generate the correctly formatted redeem script with&lt;br/&gt;&amp;gt; public keys in the right order)?&lt;br/&gt;&amp;gt; - If multi-sig, how do you prevent collisions on the same address index&lt;br/&gt;&amp;gt; (in a wallet that is occasionally connected)?&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; BIP45 solves the collision that occurs when the individual parties in a&lt;br/&gt;&amp;gt; multi-sig group each give out a new address from a wallet, where the wallet&lt;br/&gt;&amp;gt; hasn’t been able to sync to mark the address as ‘used’ (this could happen&lt;br/&gt;&amp;gt; if they gave out addresses independently at the same time).  It uses a&lt;br/&gt;&amp;gt; cosigner index in the derivation path so that each party has their own path&lt;br/&gt;&amp;gt; to their addresses.  However, BIP45 drops the multi-coin support that BIP44&lt;br/&gt;&amp;gt; has.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; This is a useful discussion on the problems of a collision and the merits&lt;br/&gt;&amp;gt; of separating cosigners in the derivation path:&lt;br/&gt;&amp;gt; &lt;a href=&#34;https://www.mail-archive.com/bitcoin-development@lists.sourceforge.net/msg05188.html&#34;&gt;https://www.mail-archive.com/bitcoin-development@lists.sourceforge.net/msg05188.html&lt;/a&gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; For the purposes of the BIP text (and the example paths used to generate&lt;br/&gt;&amp;gt; keys) I’ve temporarily assigned it the number 46.  It looks like that is&lt;br/&gt;&amp;gt; available and seemed somewhat appropriate given that it builds on the good&lt;br/&gt;&amp;gt; work of BIP44 and BIP45.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Paul Brown&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; _______________________________________________&lt;br/&gt;&amp;gt; bitcoin-dev mailing list&lt;br/&gt;&amp;gt; mailto:bitcoin-dev at lists.linuxfoundation.org&lt;br/&gt;&amp;gt; &lt;a href=&#34;https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev&#34;&gt;https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev&lt;/a&gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20180504/90c4be2c/attachment-0001.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20180504/90c4be2c/attachment-0001.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-07T18:11:52Z</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsyzfejjywptkuzn0mgrwn6hec9nhyyre8958x029gu2ye22vmlvfszyzvdaf5qaxpzd06s7vs9g4mhn7ae67t2g4r07qzz60a6t8d2lsadcp56ug2</id>
    
      <title type="html">📅 Original date posted:2017-12-14 📝 Original message:An ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsyzfejjywptkuzn0mgrwn6hec9nhyyre8958x029gu2ye22vmlvfszyzvdaf5qaxpzd06s7vs9g4mhn7ae67t2g4r07qzz60a6t8d2lsadcp56ug2" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqs0zhj56yfpk27xsqsxqn8vyv52naq2ha5sk9kaak6hql5s6s74zzq7anajm&#39;&gt;nevent1q…najm&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2017-12-14&lt;br/&gt;📝 Original message:An alternative to &amp;#34;training&amp;#34; users to understand SI prefixes could be to&lt;br/&gt;make 100 satoshi = 1 mu, spelling out the Greek letter.&lt;br/&gt;&lt;br/&gt;Although the Units &amp;lt;&lt;a href=&#34;https://en.bitcoin.it/wiki/Units&amp;gt&#34;&gt;https://en.bitcoin.it/wiki/Units&amp;gt&lt;/a&gt;; page on the wiki has&lt;br/&gt;been brought up to argue against naming 10,000 satoshi = 1 finney, I would&lt;br/&gt;like to support this designation. It seems to be gaining some popular&lt;br/&gt;support on Twitter &amp;amp; podcasts. So at $10,000 BTC/USD, 1 finney = $1.00. The&lt;br/&gt;smallest unit of value would be 0.0001 finney = 1 satoshi. Finney has a&lt;br/&gt;natural abbreviation as fin, and 100 mu = 1 finney.&lt;br/&gt;&lt;br/&gt;The Units page also refers to &amp;#34;bitcent&amp;#34; as 0.01 BTC, but if a &amp;#34;bit&amp;#34; is 100&lt;br/&gt;satoshi, then what is a &amp;#34;bitcent&amp;#34; in that context?&lt;br/&gt;&lt;br/&gt;/bikeshed&lt;br/&gt;&lt;br/&gt;@Natanael you&amp;#39;re exactly right. There are already multiple uses of &amp;#34;bits&amp;#34;&lt;br/&gt;within bitcoin itself.&lt;br/&gt;&lt;br/&gt;@Sjors I don&amp;#39;t think a redefinition of &amp;#39;satoshi&amp;#39; is going to happen ;-)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;-Clark&lt;br/&gt;&lt;br/&gt;On Thu, Dec 14, 2017 at 4:01 PM, Natanael via bitcoin-dev &amp;lt;&lt;br/&gt;bitcoin-dev at lists.linuxfoundation.org&amp;gt; wrote:&lt;br/&gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Reposting /u/BashCo&amp;#39;s post on reddit here, for visibility:&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; ---8&amp;lt;---------------------------------------------------------------&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; &amp;gt; Before anyone says &amp;#39;bits&amp;#39; are too confusing because it&amp;#39;s a computer&lt;br/&gt;&amp;gt; science term, here&amp;#39;s a list of homonyms [&lt;a href=&#34;https://en.wikipedia.org/wiki&#34;&gt;https://en.wikipedia.org/wiki&lt;/a&gt;&lt;br/&gt;&amp;gt; /List_of_true_homonyms] that you use every day. Homonyms are fine because&lt;br/&gt;&amp;gt; our brains are able to interpret language based on context, so it&amp;#39;s a&lt;br/&gt;&amp;gt; non-argument.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; This ignores the fact that there exists multiple meanings of bits *within&lt;br/&gt;&amp;gt; the same context*, and that beginners likely can&amp;#39;t tell them apart.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Feel free to try it yourself - talk about Bitcoin &amp;#34;bits&amp;#34; of a particular&lt;br/&gt;&amp;gt; value with somebody who  doesn&amp;#39;t understand Bitcoin. Then explain that the&lt;br/&gt;&amp;gt; cryptography uses 256 bit keys. I would be surprised if you could find&lt;br/&gt;&amp;gt; somebody who would not be confused by that.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Let&amp;#39;s say a website says a song is 24 bits. Was that 24 bit audio&lt;br/&gt;&amp;gt; resolution or 24 bit price? Somebody writes about 256 bit keys, are that&lt;br/&gt;&amp;gt; their size or value?&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; You guys here can probably tell the difference. Can everybody...? Bits&lt;br/&gt;&amp;gt; will cause confusion, because plenty of people will not be able to tell&lt;br/&gt;&amp;gt; these apart. They will not know WHEN to apply one definition or the other.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; &lt;a href=&#34;https://www.reddit.com/r/bitcoin/comments/24m3nb/_/ch8gua7&#34;&gt;https://www.reddit.com/r/bitcoin/comments/24m3nb/_/ch8gua7&lt;/a&gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; _______________________________________________&lt;br/&gt;&amp;gt; bitcoin-dev mailing list&lt;br/&gt;&amp;gt; bitcoin-dev at lists.linuxfoundation.org&lt;br/&gt;&amp;gt; &lt;a href=&#34;https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev&#34;&gt;https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev&lt;/a&gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20171214/73f8b8ef/attachment-0001.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20171214/73f8b8ef/attachment-0001.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-07T18:08:43Z</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsdcetlmk2mnr0kusujalt3vd56m30sgalth485z3yd0je92rpdnqgzyzvdaf5qaxpzd06s7vs9g4mhn7ae67t2g4r07qzz60a6t8d2lsadcr5ahad</id>
    
      <title type="html">📅 Original date posted:2017-07-14 📝 Original ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsdcetlmk2mnr0kusujalt3vd56m30sgalth485z3yd0je92rpdnqgzyzvdaf5qaxpzd06s7vs9g4mhn7ae67t2g4r07qzz60a6t8d2lsadcr5ahad" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqswjvm5xfk7l9xahdwdwezhsx27mkj5cnlq8kcgktw8td3qg35z68gmzuj0v&#39;&gt;nevent1q…uj0v&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2017-07-14&lt;br/&gt;📝 Original message:(copying from GitHub per jonasschnelli&amp;#39;s request)&lt;br/&gt;&lt;br/&gt;I can understand the desire to keep all reference strings to the nice&lt;br/&gt;14-character version by keeping the data payload to 40 bits, but it&lt;br/&gt;seems to place artificial limitations on the format (year 2048 &amp;amp; 8191&lt;br/&gt;transactions). I also understand that this might be addressed with&lt;br/&gt;Version 1 encoding. But current blocks are not that far from having&lt;br/&gt;8191 transactions.&lt;br/&gt;&lt;br/&gt;You could go with a variable-length encoding similar to Bitcoin&amp;#39;s&lt;br/&gt;variable ints and gain the benefit of having a format that will work&lt;br/&gt;for very large blocks and the very far future.&lt;br/&gt;&lt;br/&gt;Also, the Bech32 reference libraries allow encoding from byte arrays&lt;br/&gt;into the base-5 arrays native to Bech32. It seems like bit-packing to&lt;br/&gt;these 40 bits might be overkill. As an alternative you could have one&lt;br/&gt;bit-packed byte to start:&lt;br/&gt;&lt;br/&gt;# First two bits are the protocol version, supporting values 0-3&lt;br/&gt;V = ((protocol version) &amp;amp; 0x03) &amp;lt;&amp;lt; 6&lt;br/&gt;# Next two bits are magic for the blockchain&lt;br/&gt;# 0x00 = Bitcoin&lt;br/&gt;# 0x01 = Testnet3&lt;br/&gt;# 0x02 = Byte1 is another coin&amp;#39;s magic code (gives 256 options)&lt;br/&gt;# 0x03 = Byte1-2 is treated as the coin magic code (gives 65280 more options)&lt;br/&gt;M = (magic &amp;amp; 0x03) &amp;lt;&amp;lt; 4&lt;br/&gt;# Next two bits are the byte length of the block reference&lt;br/&gt;B = ((byte length of block reference) &amp;amp; 0x03) &amp;lt;&amp;lt; 2&lt;br/&gt;# Final two bits are the byte length of the transaction index&lt;br/&gt;T = ((byte length of transaction index) &amp;amp; 0x03)&lt;br/&gt;# Assemble into the first byte&lt;br/&gt;Byte0 = V | M | B | T&lt;br/&gt;&lt;br/&gt;This gives you up to 3 bytes for each block and transaction reference,&lt;br/&gt;which is 16.7 M blocks, or year 2336, and 16.7 M transaction slots.&lt;br/&gt;&lt;br/&gt;Data part: [Byte0][optional magic bytes 1-2][block reference bytes][tx&lt;br/&gt;reference bytes]&lt;br/&gt;&lt;br/&gt;So the shortest data part would have 3 bytes in it, with the reference&lt;br/&gt;version 0 genesis coinbase transaction having data part 0x050000.&lt;br/&gt;&lt;br/&gt;I know this is a departure from your vision, but it would be much more&lt;br/&gt;flexible for the long term.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Clark
    </content>
    <updated>2023-06-07T18:04:38Z</updated>
  </entry>

</feed>