<?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/npub17cwk7hm623dm5npjzu8cvv994h43k2keanegs8w78xyvlez8hqqsqqmtzy.rss" />
  <link href="https://nostr.ae/npub17cwk7hm623dm5npjzu8cvv994h43k2keanegs8w78xyvlez8hqqsqqmtzy" />
  <id>https://nostr.ae/npub17cwk7hm623dm5npjzu8cvv994h43k2keanegs8w78xyvlez8hqqsqqmtzy</id>
  <icon></icon>
  <logo></logo>




  <entry>
    <id>https://nostr.ae/nevent1qqsp8q9y3r6c7pvffcvxej7xdcvwj25lagqmm2twr2r98acfnxwml5szyrmp6m6l0f29hwjvxgtslp3s5kk7kxe2m8k09zqamcuc3nlyg7uqz8zy25q</id>
    
      <title type="html">📅 Original date posted:2020-03-25 📝 Original message:Hello, ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsp8q9y3r6c7pvffcvxej7xdcvwj25lagqmm2twr2r98acfnxwml5szyrmp6m6l0f29hwjvxgtslp3s5kk7kxe2m8k09zqamcuc3nlyg7uqz8zy25q" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqszke4m4tkc6nenyeudek2jkvswnyj4lxvwgjwn0ntf2272t9y69esz64jkz&#39;&gt;nevent1q…4jkz&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2020-03-25&lt;br/&gt;📝 Original message:Hello,&lt;br/&gt;&lt;br/&gt;I propose simplifying BIP-322 down to the single-proof case, and&lt;br/&gt;removing some abstractions (e.g. the &amp;#34;actions&amp;#34;/&amp;#34;purposes&amp;#34; stuff):&lt;br/&gt;&lt;a href=&#34;https://github.com/bitcoin/bips/pull/903&#34;&gt;https://github.com/bitcoin/bips/pull/903&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Feedback welcome.&lt;br/&gt;&lt;br/&gt;New version below:&lt;br/&gt;```&lt;br/&gt;&amp;lt;pre&amp;gt;&lt;br/&gt;BIP: 322&lt;br/&gt;Layer: Applications&lt;br/&gt;Title: Generic Signed Message Format&lt;br/&gt;Author: Karl-Johan Alm &amp;lt;karljohan-alm at garage.co.jp&amp;gt;&lt;br/&gt;Comments-Summary: No comments yet.&lt;br/&gt;Comments-URI: &lt;a href=&#34;https://github.com/bitcoin/bips/wiki/Comments:BIP-0322&#34;&gt;https://github.com/bitcoin/bips/wiki/Comments:BIP-0322&lt;/a&gt;&lt;br/&gt;Status: Draft&lt;br/&gt;Type: Standards Track&lt;br/&gt;Created: 2018-09-10&lt;br/&gt;License: CC0-1.0&lt;br/&gt;&amp;lt;/pre&amp;gt;&lt;br/&gt;&lt;br/&gt;== Abstract ==&lt;br/&gt;&lt;br/&gt;A standard for interoperable generic signed messages based on the&lt;br/&gt;Bitcoin Script format.&lt;br/&gt;&lt;br/&gt;== Background ==&lt;br/&gt;&lt;br/&gt;* Assume two actors, a prover &amp;lt;code&amp;gt;P&amp;lt;/code&amp;gt; and a verifier &amp;lt;code&amp;gt;V&amp;lt;/code&amp;gt;.&lt;br/&gt;* &amp;lt;code&amp;gt;P&amp;lt;/code&amp;gt; wants to prove that they own the private key&lt;br/&gt;&amp;lt;code&amp;gt;k&amp;lt;/code&amp;gt; associated with a given address &amp;lt;code&amp;gt;A&amp;lt;/code&amp;gt; (which&lt;br/&gt;in turn is derived from the pubkey &amp;lt;code&amp;gt;kG&amp;lt;/code&amp;gt;).&lt;br/&gt;* Let &amp;lt;code&amp;gt;V&amp;lt;/code&amp;gt; generate a message &amp;lt;code&amp;gt;M&amp;lt;/code&amp;gt; and hand this&lt;br/&gt;to &amp;lt;code&amp;gt;P&amp;lt;/code&amp;gt;.&lt;br/&gt;* &amp;lt;code&amp;gt;P&amp;lt;/code&amp;gt; generates a signature &amp;lt;code&amp;gt;S&amp;lt;/code&amp;gt; by signing the&lt;br/&gt;message &amp;lt;code&amp;gt;M&amp;lt;/code&amp;gt; using &amp;lt;code&amp;gt;k&amp;lt;/code&amp;gt;. Given &amp;lt;code&amp;gt;S&amp;lt;/code&amp;gt;,&lt;br/&gt;&amp;lt;code&amp;gt;V&amp;lt;/code&amp;gt; can prove that &amp;lt;code&amp;gt;P&amp;lt;/code&amp;gt; has the private key&lt;br/&gt;associated with &amp;lt;code&amp;gt;A&amp;lt;/code&amp;gt;.&lt;br/&gt;&lt;br/&gt;The astute reader will notice that the above is missing a critical&lt;br/&gt;part, namely the pubkey &amp;lt;code&amp;gt;kG&amp;lt;/code&amp;gt;, without which the verifier&lt;br/&gt;cannot actually verify the message. The current message signing&lt;br/&gt;standard solves this via a cryptographic trick, wherein the signature&lt;br/&gt;&amp;lt;code&amp;gt;S&amp;lt;/code&amp;gt; above is a special &amp;#34;recoverable signature&amp;#34; type. Given&lt;br/&gt;the message &amp;lt;code&amp;gt;M&amp;lt;/code&amp;gt; and the signature &amp;lt;code&amp;gt;S&amp;lt;/code&amp;gt;, it is&lt;br/&gt;then possible to recover the pubkey &amp;lt;code&amp;gt;kG&amp;lt;/code&amp;gt;. The system thus&lt;br/&gt;derives the address for the pubkey &amp;lt;code&amp;gt;kG&amp;lt;/code&amp;gt;, and if it does not&lt;br/&gt;match &amp;lt;code&amp;gt;A&amp;lt;/code&amp;gt;, the proof is deemed invalid.&lt;br/&gt;&lt;br/&gt;While this is a neat trick, it unnecessarily restricts and complicates&lt;br/&gt;the message signing mechanism; for instance, it is currently not&lt;br/&gt;possible to sign a message for a P2SH address, because there is no&lt;br/&gt;pubkey to recover from the resulting signature.&lt;br/&gt;&lt;br/&gt;== Motivation ==&lt;br/&gt;&lt;br/&gt;The current message signing standard only works for P2PKH (1...)&lt;br/&gt;addresses. By extending it to use a Bitcoin Script based approach, it&lt;br/&gt;could be made more generic without causing a too big burden on&lt;br/&gt;implementers, who most likely have access to Bitcoin Script&lt;br/&gt;interpreters already.&lt;br/&gt;&lt;br/&gt;== Specification ==&lt;br/&gt;&lt;br/&gt;A new structure &amp;lt;code&amp;gt;SignatureProof&amp;lt;/code&amp;gt; is added, which is a&lt;br/&gt;simple serializable scriptSig &amp;amp; witness container.&lt;br/&gt;&lt;br/&gt;=== SignatureProof container ===&lt;br/&gt;&lt;br/&gt;{|class=&amp;#34;wikitable&amp;#34; style=&amp;#34;text-align: center;&amp;#34;&lt;br/&gt;|-&lt;br/&gt;!Type&lt;br/&gt;!Length&lt;br/&gt;!Name&lt;br/&gt;!Comment&lt;br/&gt;|-&lt;br/&gt;|VarInt||1-8||scriptsiglen||Number of bytes in scriptSig data&lt;br/&gt;|-&lt;br/&gt;|Uint8*||[scriptsiglen]||scriptsig||ScriptSig data&lt;br/&gt;|-&lt;br/&gt;|VarInt||1-8||witlen||Number of entries in witness stack&lt;br/&gt;|-&lt;br/&gt;|Uint8[]*||[witlen]||wit||Witness stack, as [witlen] uint8* vectors,&lt;br/&gt;each one prepended with a varint of its size&lt;br/&gt;|}&lt;br/&gt;&lt;br/&gt;In some cases, the scriptsig or wit may be empty. If both are empty,&lt;br/&gt;the proof is incomplete.&lt;br/&gt;&lt;br/&gt;=== Result Codes ===&lt;br/&gt;&lt;br/&gt;A verification call will return a result code according to the table below.&lt;br/&gt;&lt;br/&gt;{|class=&amp;#34;wikitable&amp;#34; style=&amp;#34;text-align: center;&amp;#34;&lt;br/&gt;|-&lt;br/&gt;!Code&lt;br/&gt;!Description&lt;br/&gt;|-&lt;br/&gt;|INCOMPLETE||Empty proof.&lt;br/&gt;|-&lt;br/&gt;|INCONCLUSIVE||The given proof was consensus-valid but policy-invalid.&lt;br/&gt;|-&lt;br/&gt;|VALID||The proof was valid.&lt;br/&gt;|-&lt;br/&gt;|INVALID||The proof was invalid&lt;br/&gt;|-&lt;br/&gt;|ERROR||An error was encountered&lt;br/&gt;|}&lt;br/&gt;&lt;br/&gt;== Signing and Verifying ==&lt;br/&gt;&lt;br/&gt;If the challenge consists of an address is in the P2PKH (legacy)&lt;br/&gt;format, sign using the legacy format (further information below).&lt;br/&gt;Otherwise continue as stated below.&lt;br/&gt;&lt;br/&gt;For both cases, generate a sighash based on the given scriptPubKey and&lt;br/&gt;message as follows:&lt;br/&gt;&lt;br/&gt;# Define the message pre-image as the sequence &amp;#34;Bitcoin Signed&lt;br/&gt;Message:\n&amp;#34; concatenated with the message, encoded in UTF-8 using&lt;br/&gt;Normalization Form Compatibility Decomposition (NFKD)&lt;br/&gt;# Let sighash = sha256(sha256(scriptPubKey || pre-image))&lt;br/&gt;&lt;br/&gt;A private key may be used directly to sign a message. In this case,&lt;br/&gt;its P2WPKH bech32 address shall be derived, and used as the input.&lt;br/&gt;&lt;br/&gt;=== Signing ===&lt;br/&gt;&lt;br/&gt;The signature is generated as follows:&lt;br/&gt;&lt;br/&gt;# Derive the private key privkey for the scriptPubKey; FAIL if not VALID&lt;br/&gt;# Generate and return a signature sig with privkey=privkey, sighash=sighash&lt;br/&gt;&lt;br/&gt;=== Verifying ===&lt;br/&gt;&lt;br/&gt;Verify a proof, given a standard flags value, a script sig, an&lt;br/&gt;optional witness, and a derived sighash as described above.&lt;br/&gt;&lt;br/&gt;While omitted below, ERROR is returned if an unforeseen error occurs&lt;br/&gt;at any point in the process. A concrete example of this is if a legacy&lt;br/&gt;proof is given as input to a non-legacy address; the deserialization&lt;br/&gt;of the proof will fail in this case, and this should result in an&lt;br/&gt;ERROR result.&lt;br/&gt;&lt;br/&gt;# Verify Script with flags=consensus flags (currently P2SH, DERSIG,&lt;br/&gt;NULLDUMMY, CLTV, CSV, WITNESS), scriptSig=script sig,&lt;br/&gt;scriptPubKey=scriptPubKey, witness=witness, and sighash=sighash&lt;br/&gt;# Return INVALID if verification fails&lt;br/&gt;# Verify Script with flags=standard flags (above plus STRICTENC,&lt;br/&gt;MINIMALDATA, etc.), scriptSig=script sig, scriptPubKey=scriptPubKey,&lt;br/&gt;witness=witness, and sighash=sighash&lt;br/&gt;# Return VALID if verification succeeds, otherwise return INCONCLUSIVE&lt;br/&gt;&lt;br/&gt;== Legacy format ==&lt;br/&gt;&lt;br/&gt;The legacy format is restricted to the legacy P2PKH address format.&lt;br/&gt;&lt;br/&gt;Any other input (i.e. non-P2PKH address format) must be signed using&lt;br/&gt;the new format described above.&lt;br/&gt;&lt;br/&gt;=== Signing ===&lt;br/&gt;&lt;br/&gt;Given the P2PKH address &amp;lt;code&amp;gt;a&amp;lt;/code&amp;gt; and the message &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt;,&lt;br/&gt;and the pubkey-hash function &amp;lt;code&amp;gt;pkh(P) =&lt;br/&gt;ripemd160(sha256(P))&amp;lt;/code&amp;gt;:&lt;br/&gt;&lt;br/&gt;# let &amp;lt;code&amp;gt;p&amp;lt;/code&amp;gt; be the pubkey-hash &amp;lt;code&amp;gt;pkh(P)&amp;lt;/code&amp;gt; for the&lt;br/&gt;pubkey &amp;lt;code&amp;gt;P&amp;lt;/code&amp;gt;, contained in &amp;lt;code&amp;gt;a&amp;lt;/code&amp;gt;&lt;br/&gt;# let &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; be the private key associated with &amp;lt;code&amp;gt;P&amp;lt;/code&amp;gt;&lt;br/&gt;so that &amp;lt;code&amp;gt;pkh(xG) = p&amp;lt;/code&amp;gt;&lt;br/&gt;# let &amp;lt;code&amp;gt;digest&amp;lt;/code&amp;gt; be &amp;lt;code&amp;gt;SHA56d(&amp;#34;Bitcoin Signed Message:\n&amp;#34;||m)&amp;lt;/code&amp;gt;&lt;br/&gt;# create a compact signature &amp;lt;code&amp;gt;sig&amp;lt;/code&amp;gt; (aka &amp;#34;recoverable ECDSA&lt;br/&gt;signature&amp;#34;) using &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;digest&amp;lt;/code&amp;gt;&lt;br/&gt;&lt;br/&gt;The resulting proof is &amp;lt;code&amp;gt;sig&amp;lt;/code&amp;gt;, serialized using the base64 encoding.&lt;br/&gt;&lt;br/&gt;=== Verifying ===&lt;br/&gt;&lt;br/&gt;Given the P2PKH address &amp;lt;code&amp;gt;a&amp;lt;/code&amp;gt;, the message &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt;,&lt;br/&gt;the compact signature &amp;lt;code&amp;gt;sig&amp;lt;/code&amp;gt;, and the pubkey-hash function&lt;br/&gt;&amp;lt;code&amp;gt;pkh(P) = ripemd160(sha256(P))&amp;lt;/code&amp;gt;:&lt;br/&gt;&lt;br/&gt;# let &amp;lt;code&amp;gt;p&amp;lt;/code&amp;gt; be the pubkey-hash &amp;lt;code&amp;gt;pkh(P)&amp;lt;/code&amp;gt; for the&lt;br/&gt;pubkey &amp;lt;code&amp;gt;P&amp;lt;/code&amp;gt;, contained in &amp;lt;code&amp;gt;a&amp;lt;/code&amp;gt;&lt;br/&gt;# let &amp;lt;code&amp;gt;digest&amp;lt;/code&amp;gt; be &amp;lt;code&amp;gt;SHA56d(&amp;#34;Bitcoin Signed Message:\n&amp;#34;||m)&amp;lt;/code&amp;gt;&lt;br/&gt;# attempt pubkey recovery for &amp;lt;code&amp;gt;digest&amp;lt;/code&amp;gt; using the signature&lt;br/&gt;&amp;lt;code&amp;gt;sig&amp;lt;/code&amp;gt; and store the resulting pubkey into &amp;lt;code&amp;gt;Q&amp;lt;/code&amp;gt;&lt;br/&gt;## fail verification if pubkey recovery above fails&lt;br/&gt;# let &amp;lt;code&amp;gt;q&amp;lt;/code&amp;gt; be the pubkey-hash &amp;lt;code&amp;gt;pkh(Q)&amp;lt;/code&amp;gt; for the&lt;br/&gt;pubkey &amp;lt;code&amp;gt;Q&amp;lt;/code&amp;gt;&lt;br/&gt;# if &amp;lt;code&amp;gt;p == q&amp;lt;/code&amp;gt;, the proof is valid, otherwise it is invalid&lt;br/&gt;&lt;br/&gt;== Compatibility ==&lt;br/&gt;&lt;br/&gt;This specification is backwards compatible with the legacy&lt;br/&gt;signmessage/verifymessage specification through the special case as&lt;br/&gt;described above.&lt;br/&gt;&lt;br/&gt;== Reference implementation ==&lt;br/&gt;&lt;br/&gt;# Pull request to Bitcoin Core: &lt;a href=&#34;https://github.com/bitcoin/bitcoin/pull/16440&#34;&gt;https://github.com/bitcoin/bitcoin/pull/16440&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;== Acknowledgements ==&lt;br/&gt;&lt;br/&gt;Thanks to David Harding, Jim Posen, Kalle Rosenbaum, Pieter Wuille,&lt;br/&gt;and many others for their feedback on the specification.&lt;br/&gt;&lt;br/&gt;== References ==&lt;br/&gt;&lt;br/&gt;# Original mailing list thread:&lt;br/&gt;&lt;a href=&#34;https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2018-March/015818.html&#34;&gt;https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2018-March/015818.html&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;== Copyright ==&lt;br/&gt;&lt;br/&gt;This document is licensed under the Creative Commons CC0 1.0 Universal license.&lt;br/&gt;&lt;br/&gt;== Consensus and standard flags ==&lt;br/&gt;&lt;br/&gt;Each flag is associated with some type of enforced rule (most often a&lt;br/&gt;soft fork). There are two sets of flags: consensus flags (which result&lt;br/&gt;in a block being rejected, if violated), and policy flags (which&lt;br/&gt;result in a transaction being accepted only if it is contained within&lt;br/&gt;an actual block, and rejected otherwise, if violated). The policy&lt;br/&gt;flags are a super-set of the consensus flags.&lt;br/&gt;&lt;br/&gt;BIP322 specifies that a proof that validates for both rulesets is&lt;br/&gt;valid, a proof that validates for consensus rules, but not for policy&lt;br/&gt;rules, is &amp;#34;inconclusive&amp;#34;, and a proof that does not validate for&lt;br/&gt;consensus rules is &amp;#34;invalid&amp;#34; (regardless of policy rule validation).&lt;br/&gt;&lt;br/&gt;The ruleset sometimes changes. This BIP does not intend to be&lt;br/&gt;complete, nor does it indicate enforcement of rules, it simply lists&lt;br/&gt;the rules as they stand at the point of writing.&lt;br/&gt;&lt;br/&gt;=== Consensus rules ===&lt;br/&gt;&lt;br/&gt;* P2SH: evaluate P2SH&lt;br/&gt;([&lt;a href=&#34;https://github.com/bitcoin/bips/blob/master/bip-0016.mediawiki&#34;&gt;https://github.com/bitcoin/bips/blob/master/bip-0016.mediawiki&lt;/a&gt;&lt;br/&gt;BIP16]) subscripts&lt;br/&gt;* DERSIG: enforce strict DER&lt;br/&gt;([&lt;a href=&#34;https://github.com/bitcoin/bips/blob/master/bip-0066.mediawiki&#34;&gt;https://github.com/bitcoin/bips/blob/master/bip-0066.mediawiki&lt;/a&gt;&lt;br/&gt;BIP66]) compliance&lt;br/&gt;* NULLDUMMY: enforce NULLDUMMY&lt;br/&gt;([&lt;a href=&#34;https://github.com/bitcoin/bips/blob/master/bip-0147.mediawiki&#34;&gt;https://github.com/bitcoin/bips/blob/master/bip-0147.mediawiki&lt;/a&gt;&lt;br/&gt;BIP147])&lt;br/&gt;* CHECKLOCKTIMEVERIFY: enable CHECKLOCKTIMEVERIFY&lt;br/&gt;([&lt;a href=&#34;https://github.com/bitcoin/bips/blob/master/bip-0065.mediawiki&#34;&gt;https://github.com/bitcoin/bips/blob/master/bip-0065.mediawiki&lt;/a&gt;&lt;br/&gt;BIP65])&lt;br/&gt;* CHECKSEQUENCEVERIFY: enable CHECKSEQUENCEVERIFY&lt;br/&gt;([&lt;a href=&#34;https://github.com/bitcoin/bips/blob/master/bip-0112.mediawiki&#34;&gt;https://github.com/bitcoin/bips/blob/master/bip-0112.mediawiki&lt;/a&gt;&lt;br/&gt;BIP112])&lt;br/&gt;* WITNESS: enable WITNESS&lt;br/&gt;([&lt;a href=&#34;https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki&#34;&gt;https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki&lt;/a&gt;&lt;br/&gt;BIP141])&lt;br/&gt;&lt;br/&gt;=== Policy rules ===&lt;br/&gt;&lt;br/&gt;All of the above, plus (subject to change):&lt;br/&gt;&lt;br/&gt;* STRICTENC: non-strict DER signature or undefined hashtype&lt;br/&gt;* MINIMALDATA: require minimal encodings for all push operations&lt;br/&gt;* DISCOURAGE_UPGRADABLE_NOPS: discourage use of NOPs reserved for upgrades&lt;br/&gt;* CLEANSTACK: require that only a single stack element remains after evaluation&lt;br/&gt;* MINIMALIF: Segwit script only: require the argument of OP_IF/NOTIF&lt;br/&gt;to be exactly 0x01 or empty vector&lt;br/&gt;* NULLFAIL: signature(s) must be empty vector if a CHECK(MULTI)SIG&lt;br/&gt;operation failed&lt;br/&gt;* LOW_S: signature with S &amp;gt; order/2 in a checksig operation&lt;br/&gt;* DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM: v1-16 witness programs are&lt;br/&gt;non-standard (i.e. forbidden)&lt;br/&gt;* WITNESS_PUBKEYTYPE: public keys in segregated witness scripts must&lt;br/&gt;be compressed&lt;br/&gt;* CONST_SCRIPTCODE: OP_CODESEPARATOR and FindAndDelete fail any&lt;br/&gt;non-segwit scripts&lt;br/&gt;&lt;br/&gt;== Test vectors ==&lt;br/&gt;&lt;br/&gt;(TODO: update test vectors, which are based on previous iteration&lt;br/&gt;where signature proofs contained additional data)&lt;br/&gt;&lt;br/&gt;== Native segwit test vector ==&lt;br/&gt;&lt;br/&gt;&amp;lt;pre&amp;gt;&lt;br/&gt;address = bcrt1qe7nte4zk4ayly5tc53dtdjupgkz0lr8azx3rzz&lt;br/&gt;scriptpubkey = 0014cfa6bcd456af49f25178a45ab6cb814584ff8cfd&lt;br/&gt;message = hello&lt;br/&gt;preimage = 0014cfa6bcd456af49f25178a45ab6cb814584ff8cfd426974636f696e205369&lt;br/&gt;676e6564204d6573736167653a0a68656c6c6f&lt;br/&gt;(scriptpubkey || &amp;#34;Bitcoin Signed Message:\nhello&amp;#34;)&lt;br/&gt;sighash = 790eef86c204f0bff969ff822121317aa34eff0215dbd30ccf031e7b2f3f0cc1&lt;br/&gt;(sha256d(preimage), displayed in big-endian)&lt;br/&gt;&amp;lt;/pre&amp;gt;&lt;br/&gt;&lt;br/&gt;The proof becomes:&lt;br/&gt;&lt;br/&gt;&amp;lt;pre&amp;gt;&lt;br/&gt;HEX: 01000000010002473044022075b4fb40421d55c55462879cb352a85eeb3af2138d3f0290&lt;br/&gt;2c9143f12870f5f70220119c2995c1661138142f3899c1fd6d1af7e790e0e081be72db9c&lt;br/&gt;e7bf5b5b932901210290beccd02b73eca57467b2b6f1e47161a9b76a5e67586e7c1dee9e&lt;br/&gt;a6e2dcd869&lt;br/&gt;&lt;br/&gt;Base64: AQAAAAEAAkcwRAIgdbT7QEIdVcVUYoecs1KoXus68hONPwKQLJFD8Shw9fcCIBGcKZXBZhE4&lt;br/&gt;FC84mcH9bRr355Dg4IG&#43;ctuc579bW5MpASECkL7M0Ctz7KV0Z7K28eRxYam3al5nWG58He6e&lt;br/&gt;puLc2Gk=&lt;br/&gt;&amp;lt;/pre&amp;gt;&lt;br/&gt;&lt;br/&gt;Split into components:&lt;br/&gt;&lt;br/&gt;{|class=&amp;#34;wikitable&amp;#34; style=&amp;#34;text-align: center;&amp;#34;&lt;br/&gt;|-&lt;br/&gt;!Type&lt;br/&gt;!Length&lt;br/&gt;!Name&lt;br/&gt;!Value&lt;br/&gt;!Comment&lt;br/&gt;|-&lt;br/&gt;|Uint32||4||flags||&amp;lt;code&amp;gt;01000000&amp;lt;/code&amp;gt;||proof format version&lt;br/&gt;|-&lt;br/&gt;|Uint8||1||entries||&amp;lt;code&amp;gt;01&amp;lt;/code&amp;gt;||1 entry&lt;br/&gt;|-&lt;br/&gt;|VarInt||1-8||scriptsiglen||&amp;lt;code&amp;gt;00&amp;lt;/code&amp;gt;||0 byte scriptsig&lt;br/&gt;|-&lt;br/&gt;|VarInt||1-8||wit entries||&amp;lt;code&amp;gt;02&amp;lt;/code&amp;gt;||2 witness stack entries&lt;br/&gt;|-&lt;br/&gt;|VarInt||1-8||entry1len||&amp;lt;code&amp;gt;47&amp;lt;/code&amp;gt;||71 byte entry&lt;br/&gt;|-&lt;br/&gt;|Uint8[71]||71||entry1||&amp;lt;code&amp;gt;3044022075b4fb40421d55c55462879cb352a85eeb3af213&lt;br/&gt;8d3f02902c9143f12870f5f70220119c2995c1661138142f&lt;br/&gt;3899c1fd6d1af7e790e0e081be72db9ce7bf5b5b932901&amp;lt;/code&amp;gt;||Witness stack item 1&lt;br/&gt;|-&lt;br/&gt;|VarInt||1-8||entry2len||&amp;lt;code&amp;gt;21&amp;lt;/code&amp;gt;||33 byte entry&lt;br/&gt;|-&lt;br/&gt;|Uint8[33]||33||entry2||&amp;lt;code&amp;gt;0290beccd02b73eca57467b2b6f1e47161a9b76a5e67586e&lt;br/&gt;7c1dee9ea6e2dcd869&amp;lt;/code&amp;gt;||Witness stack item 2&lt;br/&gt;|}&lt;br/&gt;&lt;br/&gt;The above test vector is for a bech32 P2WPKH (native segwit) address.&lt;br/&gt;(Once BIP solidifies, will add test vector for other types.)&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;On Wed, Mar 4, 2020 at 11:43 PM Greg Sanders &amp;lt;gsanders87 at gmail.com&amp;gt; wrote:&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; OP_MESSAGEONLY would make &amp;#34;dumb&amp;#34; signers like HWW more difficult to support. They&amp;#39;d have to do script interpretation to make sure they&amp;#39;re not signing something real with funds.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Just FYI.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; On Wed, Mar 4, 2020 at 9:35 AM Luke Dashjr 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; In addition to starting with proof-of-funds instead of proof-of-receiver, it&lt;br/&gt;&amp;gt;&amp;gt; would be nice to integrate with Taproot somehow or another. Perhaps&lt;br/&gt;&amp;gt;&amp;gt; OP_MESSAGEONLY is the most straightforward way to do this? It might be a good&lt;br/&gt;&amp;gt;&amp;gt; idea to have a message type after the opcode too.&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; On Wednesday 04 March 2020 06:23:53 Karl-Johan Alm via bitcoin-dev wrote:&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; Hello,&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; I noticed recently that a PR to Bitcoin Core that pretty much touched&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; everything my BIP-322 pull request touches (around the same&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; complexity) was merged without a thought given to BIP-322&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; compatibility, despite the BIP-322 PR being open for 2x the time. I&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; can only conclude from this that people dislike BIP-322 in its current&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; form, which the 9 month old pull request stagnating can probably&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; attest to.&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; There are several things that I can do to make this a bit more&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; appealing to people, which would hopefully kick the progress on this&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; forward. I have already put in a non-trivial amount of energy and&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; effort into maintaining the pull request as is, so I&amp;#39;d prefer if&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; people were harsh and unfiltered in their criticism rather than polite&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; and buffered, so I can beat this thing into shape (or abandon it, in&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; the worst case).&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; 1. People use signmessage as a way to prove funds. This is misleading&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; and should be discouraged; throw the sign message stuff out and&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; replace it entirely with a prove funds system.&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; I know in particular luke-jr is of this opinion, and Greg Maxwell in&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; &lt;a href=&#34;https://github.com/bitcoin/bitcoin/pull/16440#issuecomment-568194168&#34;&gt;https://github.com/bitcoin/bitcoin/pull/16440#issuecomment-568194168&lt;/a&gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; leans towards this opinion as well, it seems.&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; 2. Use a transaction rather than a new format; make the first input&amp;#39;s&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; txid the message hash to ensure the tx cannot be broadcasted. This has&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; the benefit of being able to provide to an existing hardware wallet&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; without making any modifications to its firmware.&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; I think Mark Friedenbach and Johnson Lau are of this opinion, except&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; Johnson Lau also suggests that the signature hash is modified, see&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; &lt;a href=&#34;https://github.com/bitcoin/bips/pull/725#issuecomment-420040430&#34;&gt;https://github.com/bitcoin/bips/pull/725#issuecomment-420040430&lt;/a&gt; --&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; which defeats the benefit above since now hw wallets can no longer&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; sign.&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; Prusnak (I think he works at Trezor; apologies if I am mistaken) is&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; against this idea, and proposes (3) below:&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; &lt;a href=&#34;https://github.com/bitcoin/bips/pull/725#issuecomment-420210488&#34;&gt;https://github.com/bitcoin/bips/pull/725#issuecomment-420210488&lt;/a&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; 3. Use Trezor style&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; See &lt;a href=&#34;https://github.com/trezor/trezor-mcu/issues/169&#34;&gt;https://github.com/trezor/trezor-mcu/issues/169&lt;/a&gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; This has the benefit of already being adopted (which clearly BIP-322&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; is failing hard at right now), but has the drawback that we can no&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; longer do *generic* signing; we are stuck with the exact same&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; limitations as in the legacy system, which we kinda wanted to fix in&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; the updated version.&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; 4. Introduce OP_MESSAGEONLY&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; Quoting Johnson Lau at&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; &lt;a href=&#34;https://github.com/bitcoin/bips/pull/725#issuecomment-420421058&#34;&gt;https://github.com/bitcoin/bips/pull/725#issuecomment-420421058&lt;/a&gt; :&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; &amp;#34;&amp;#34;&amp;#34;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; OP_MESSAGEONLY means the script following the code would never be&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; valid. For example, a scriptPubKey:&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; OP_IF OP_MESSAGEONLY &amp;lt;key_m&amp;gt; OP_ELSE &amp;lt;key_s&amp;gt; OP_ENDIF OP_CHECKSIG&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; For messaging purpose, OP_MESSAGEONLY is considered as OP_NOP and is&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; ignored. A message could be signed with either key_m or key_s.&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; For spending, only key_s is valid.&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; I don&amp;#39;t think it is a big problem to consume a op_code. If this is a&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; real concern, I could modify it as follow: in message system,&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; OP_RETURN will pop the top stack. If top stack is msg in hex, it is&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; ignored. Otherwise, the script fails.&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; &amp;#34;&amp;#34;&amp;#34;&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; 5. Some other solution&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; _______________________________________________&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; bitcoin-dev mailing list&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; bitcoin-dev at lists.linuxfoundation.org&lt;br/&gt;&amp;gt;&amp;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;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; _______________________________________________&lt;br/&gt;&amp;gt;&amp;gt; bitcoin-dev mailing list&lt;br/&gt;&amp;gt;&amp;gt; bitcoin-dev at lists.linuxfoundation.org&lt;br/&gt;&amp;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;
    </content>
    <updated>2023-06-07T20:23:16&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqs809t6g9cqf7xawcmnyyepg99hdzurw2svpq3nhplvrxfet49s4aszyrmp6m6l0f29hwjvxgtslp3s5kk7kxe2m8k09zqamcuc3nlyg7uqztxs9mv</id>
    
      <title type="html">📅 Original date posted:2020-03-04 📝 Original message:I ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqs809t6g9cqf7xawcmnyyepg99hdzurw2svpq3nhplvrxfet49s4aszyrmp6m6l0f29hwjvxgtslp3s5kk7kxe2m8k09zqamcuc3nlyg7uqztxs9mv" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsxy3vcd0dawh5ucrevnt66r9fc6xnmec4mmq958n6s2vsvzgxpqgszemstu&#39;&gt;nevent1q…mstu&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2020-03-04&lt;br/&gt;📝 Original message:I forgot one:&lt;br/&gt;&lt;br/&gt;=============&lt;br/&gt;5. The current BIP itself is poorly written and/or unnecessarily&lt;br/&gt;complex: e.g. remove the multi-proof support, and/or remove the&lt;br/&gt;extensibility stuff for a future proof-of-funds extension, and/or&lt;br/&gt;focus solely on the generic sign message stuff.&lt;br/&gt;&lt;br/&gt;=============&lt;br/&gt;6. Some other solution&lt;br/&gt;&lt;br/&gt;On Wed, Mar 4, 2020 at 3:23 PM Karl-Johan Alm&lt;br/&gt;&amp;lt;karljohan-alm at garage.co.jp&amp;gt; wrote:&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Hello,&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; I noticed recently that a PR to Bitcoin Core that pretty much touched&lt;br/&gt;&amp;gt; everything my BIP-322 pull request touches (around the same&lt;br/&gt;&amp;gt; complexity) was merged without a thought given to BIP-322&lt;br/&gt;&amp;gt; compatibility, despite the BIP-322 PR being open for 2x the time. I&lt;br/&gt;&amp;gt; can only conclude from this that people dislike BIP-322 in its current&lt;br/&gt;&amp;gt; form, which the 9 month old pull request stagnating can probably&lt;br/&gt;&amp;gt; attest to.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; There are several things that I can do to make this a bit more&lt;br/&gt;&amp;gt; appealing to people, which would hopefully kick the progress on this&lt;br/&gt;&amp;gt; forward. I have already put in a non-trivial amount of energy and&lt;br/&gt;&amp;gt; effort into maintaining the pull request as is, so I&amp;#39;d prefer if&lt;br/&gt;&amp;gt; people were harsh and unfiltered in their criticism rather than polite&lt;br/&gt;&amp;gt; and buffered, so I can beat this thing into shape (or abandon it, in&lt;br/&gt;&amp;gt; the worst case).&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; =============&lt;br/&gt;&amp;gt; 1. People use signmessage as a way to prove funds. This is misleading&lt;br/&gt;&amp;gt; and should be discouraged; throw the sign message stuff out and&lt;br/&gt;&amp;gt; replace it entirely with a prove funds system.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; I know in particular luke-jr is of this opinion, and Greg Maxwell in&lt;br/&gt;&amp;gt; &lt;a href=&#34;https://github.com/bitcoin/bitcoin/pull/16440#issuecomment-568194168&#34;&gt;https://github.com/bitcoin/bitcoin/pull/16440#issuecomment-568194168&lt;/a&gt;&lt;br/&gt;&amp;gt; leans towards this opinion as well, it seems.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; =============&lt;br/&gt;&amp;gt; 2. Use a transaction rather than a new format; make the first input&amp;#39;s&lt;br/&gt;&amp;gt; txid the message hash to ensure the tx cannot be broadcasted. This has&lt;br/&gt;&amp;gt; the benefit of being able to provide to an existing hardware wallet&lt;br/&gt;&amp;gt; without making any modifications to its firmware.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; I think Mark Friedenbach and Johnson Lau are of this opinion, except&lt;br/&gt;&amp;gt; Johnson Lau also suggests that the signature hash is modified, see&lt;br/&gt;&amp;gt; &lt;a href=&#34;https://github.com/bitcoin/bips/pull/725#issuecomment-420040430&#34;&gt;https://github.com/bitcoin/bips/pull/725#issuecomment-420040430&lt;/a&gt; --&lt;br/&gt;&amp;gt; which defeats the benefit above since now hw wallets can no longer&lt;br/&gt;&amp;gt; sign.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Prusnak (I think he works at Trezor; apologies if I am mistaken) is&lt;br/&gt;&amp;gt; against this idea, and proposes (3) below:&lt;br/&gt;&amp;gt; &lt;a href=&#34;https://github.com/bitcoin/bips/pull/725#issuecomment-420210488&#34;&gt;https://github.com/bitcoin/bips/pull/725#issuecomment-420210488&lt;/a&gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; =============&lt;br/&gt;&amp;gt; 3. Use Trezor style&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; See &lt;a href=&#34;https://github.com/trezor/trezor-mcu/issues/169&#34;&gt;https://github.com/trezor/trezor-mcu/issues/169&lt;/a&gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; This has the benefit of already being adopted (which clearly BIP-322&lt;br/&gt;&amp;gt; is failing hard at right now), but has the drawback that we can no&lt;br/&gt;&amp;gt; longer do *generic* signing; we are stuck with the exact same&lt;br/&gt;&amp;gt; limitations as in the legacy system, which we kinda wanted to fix in&lt;br/&gt;&amp;gt; the updated version.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; =============&lt;br/&gt;&amp;gt; 4. Introduce OP_MESSAGEONLY&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Quoting Johnson Lau at&lt;br/&gt;&amp;gt; &lt;a href=&#34;https://github.com/bitcoin/bips/pull/725#issuecomment-420421058&#34;&gt;https://github.com/bitcoin/bips/pull/725#issuecomment-420421058&lt;/a&gt; :&lt;br/&gt;&amp;gt; &amp;#34;&amp;#34;&amp;#34;&lt;br/&gt;&amp;gt; OP_MESSAGEONLY means the script following the code would never be&lt;br/&gt;&amp;gt; valid. For example, a scriptPubKey:&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; OP_IF OP_MESSAGEONLY &amp;lt;key_m&amp;gt; OP_ELSE &amp;lt;key_s&amp;gt; OP_ENDIF OP_CHECKSIG&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; For messaging purpose, OP_MESSAGEONLY is considered as OP_NOP and is&lt;br/&gt;&amp;gt; ignored. A message could be signed with either key_m or key_s.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; For spending, only key_s is valid.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; I don&amp;#39;t think it is a big problem to consume a op_code. If this is a&lt;br/&gt;&amp;gt; real concern, I could modify it as follow: in message system,&lt;br/&gt;&amp;gt; OP_RETURN will pop the top stack. If top stack is msg in hex, it is&lt;br/&gt;&amp;gt; ignored. Otherwise, the script fails.&lt;br/&gt;&amp;gt; &amp;#34;&amp;#34;&amp;#34;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; =============&lt;br/&gt;&amp;gt; 5. Some other solution
    </content>
    <updated>2023-06-07T20:23:14&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsxy3vcd0dawh5ucrevnt66r9fc6xnmec4mmq958n6s2vsvzgxpqgszyrmp6m6l0f29hwjvxgtslp3s5kk7kxe2m8k09zqamcuc3nlyg7uqz3cvyjp</id>
    
      <title type="html">📅 Original date posted:2020-03-04 📝 Original message:Hello, ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsxy3vcd0dawh5ucrevnt66r9fc6xnmec4mmq958n6s2vsvzgxpqgszyrmp6m6l0f29hwjvxgtslp3s5kk7kxe2m8k09zqamcuc3nlyg7uqz3cvyjp" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqswak2a3kk5e9zwxpsqkf82rmqaghw48amgm3gt7vgs0s6hdnmyf5s2yyjd0&#39;&gt;nevent1q…yjd0&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2020-03-04&lt;br/&gt;📝 Original message:Hello,&lt;br/&gt;&lt;br/&gt;I noticed recently that a PR to Bitcoin Core that pretty much touched&lt;br/&gt;everything my BIP-322 pull request touches (around the same&lt;br/&gt;complexity) was merged without a thought given to BIP-322&lt;br/&gt;compatibility, despite the BIP-322 PR being open for 2x the time. I&lt;br/&gt;can only conclude from this that people dislike BIP-322 in its current&lt;br/&gt;form, which the 9 month old pull request stagnating can probably&lt;br/&gt;attest to.&lt;br/&gt;&lt;br/&gt;There are several things that I can do to make this a bit more&lt;br/&gt;appealing to people, which would hopefully kick the progress on this&lt;br/&gt;forward. I have already put in a non-trivial amount of energy and&lt;br/&gt;effort into maintaining the pull request as is, so I&amp;#39;d prefer if&lt;br/&gt;people were harsh and unfiltered in their criticism rather than polite&lt;br/&gt;and buffered, so I can beat this thing into shape (or abandon it, in&lt;br/&gt;the worst case).&lt;br/&gt;&lt;br/&gt;=============&lt;br/&gt;1. People use signmessage as a way to prove funds. This is misleading&lt;br/&gt;and should be discouraged; throw the sign message stuff out and&lt;br/&gt;replace it entirely with a prove funds system.&lt;br/&gt;&lt;br/&gt;I know in particular luke-jr is of this opinion, and Greg Maxwell in&lt;br/&gt;&lt;a href=&#34;https://github.com/bitcoin/bitcoin/pull/16440#issuecomment-568194168&#34;&gt;https://github.com/bitcoin/bitcoin/pull/16440#issuecomment-568194168&lt;/a&gt;&lt;br/&gt;leans towards this opinion as well, it seems.&lt;br/&gt;&lt;br/&gt;=============&lt;br/&gt;2. Use a transaction rather than a new format; make the first input&amp;#39;s&lt;br/&gt;txid the message hash to ensure the tx cannot be broadcasted. This has&lt;br/&gt;the benefit of being able to provide to an existing hardware wallet&lt;br/&gt;without making any modifications to its firmware.&lt;br/&gt;&lt;br/&gt;I think Mark Friedenbach and Johnson Lau are of this opinion, except&lt;br/&gt;Johnson Lau also suggests that the signature hash is modified, see&lt;br/&gt;&lt;a href=&#34;https://github.com/bitcoin/bips/pull/725#issuecomment-420040430&#34;&gt;https://github.com/bitcoin/bips/pull/725#issuecomment-420040430&lt;/a&gt; --&lt;br/&gt;which defeats the benefit above since now hw wallets can no longer&lt;br/&gt;sign.&lt;br/&gt;&lt;br/&gt;Prusnak (I think he works at Trezor; apologies if I am mistaken) is&lt;br/&gt;against this idea, and proposes (3) below:&lt;br/&gt;&lt;a href=&#34;https://github.com/bitcoin/bips/pull/725#issuecomment-420210488&#34;&gt;https://github.com/bitcoin/bips/pull/725#issuecomment-420210488&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;=============&lt;br/&gt;3. Use Trezor style&lt;br/&gt;&lt;br/&gt;See &lt;a href=&#34;https://github.com/trezor/trezor-mcu/issues/169&#34;&gt;https://github.com/trezor/trezor-mcu/issues/169&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;This has the benefit of already being adopted (which clearly BIP-322&lt;br/&gt;is failing hard at right now), but has the drawback that we can no&lt;br/&gt;longer do *generic* signing; we are stuck with the exact same&lt;br/&gt;limitations as in the legacy system, which we kinda wanted to fix in&lt;br/&gt;the updated version.&lt;br/&gt;&lt;br/&gt;=============&lt;br/&gt;4. Introduce OP_MESSAGEONLY&lt;br/&gt;&lt;br/&gt;Quoting Johnson Lau at&lt;br/&gt;&lt;a href=&#34;https://github.com/bitcoin/bips/pull/725#issuecomment-420421058&#34;&gt;https://github.com/bitcoin/bips/pull/725#issuecomment-420421058&lt;/a&gt; :&lt;br/&gt;&amp;#34;&amp;#34;&amp;#34;&lt;br/&gt;OP_MESSAGEONLY means the script following the code would never be&lt;br/&gt;valid. For example, a scriptPubKey:&lt;br/&gt;&lt;br/&gt;OP_IF OP_MESSAGEONLY &amp;lt;key_m&amp;gt; OP_ELSE &amp;lt;key_s&amp;gt; OP_ENDIF OP_CHECKSIG&lt;br/&gt;&lt;br/&gt;For messaging purpose, OP_MESSAGEONLY is considered as OP_NOP and is&lt;br/&gt;ignored. A message could be signed with either key_m or key_s.&lt;br/&gt;&lt;br/&gt;For spending, only key_s is valid.&lt;br/&gt;&lt;br/&gt;I don&amp;#39;t think it is a big problem to consume a op_code. If this is a&lt;br/&gt;real concern, I could modify it as follow: in message system,&lt;br/&gt;OP_RETURN will pop the top stack. If top stack is msg in hex, it is&lt;br/&gt;ignored. Otherwise, the script fails.&lt;br/&gt;&amp;#34;&amp;#34;&amp;#34;&lt;br/&gt;&lt;br/&gt;=============&lt;br/&gt;5. Some other solution
    </content>
    <updated>2023-06-07T20:23:14&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsg5qqjkamgjayxez4z2jjrre3jsq6e4uelrfpvtverxk30nr539sczyrmp6m6l0f29hwjvxgtslp3s5kk7kxe2m8k09zqamcuc3nlyg7uqz7a742d</id>
    
      <title type="html">📅 Original date posted:2019-03-09 📝 Original message:Hi ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsg5qqjkamgjayxez4z2jjrre3jsq6e4uelrfpvtverxk30nr539sczyrmp6m6l0f29hwjvxgtslp3s5kk7kxe2m8k09zqamcuc3nlyg7uqz7a742d" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsqh54t3n9elzhtqz2jf60w4w0hnr96kmzn99eksgr68gut7sxehhsv0mq3l&#39;&gt;nevent1q…mq3l&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2019-03-09&lt;br/&gt;📝 Original message:Hi Matt,&lt;br/&gt;&lt;br/&gt;On Sat, Mar 9, 2019 at 5:20 AM Matt Corallo &amp;lt;lf-lists at mattcorallo.com&amp;gt; wrote:&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; To make testing easier, it may make sense to keep the existing block header format (and PoW) and instead apply the signature rules to some field in the coinbase transaction. This means SPV clients (assuming they only connect to honest/trusted nodes) work as-is.&lt;br/&gt;&lt;br/&gt;Keeping the PoW rule and moving the signature would mean DoS attacks&lt;br/&gt;would be trivial as anyone could mine blocks without a signature in&lt;br/&gt;them, unless you ramped up the difficulty, which would mean it&amp;#39;s just&lt;br/&gt;another testnet. It&amp;#39;s a test network, admittedly, but I think it would&lt;br/&gt;kind of defeat the purpose.&lt;br/&gt;&lt;br/&gt;&amp;gt; A previous idea regarding reorgs (that I believe Greg came up with) is to allow multiple keys to sign blocks, with one signing no reorgs and one signing a reorg every few blocks, allowing users to choose the behavior they want.&lt;br/&gt;&lt;br/&gt;Not sure how this would work in practice. The idea with signet is to&lt;br/&gt;have an actual network that is occasionally reorged, i.e. it&amp;#39;s a&lt;br/&gt;global network (for those participating) that everyone agrees on. Not&lt;br/&gt;sure how you would have choices there.
    </content>
    <updated>2023-06-07T20:16:56&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqs2uv8hqlta9q8vkp67972ldx2l9ufjq0tg30c6eljht9gjnl308tqzyrmp6m6l0f29hwjvxgtslp3s5kk7kxe2m8k09zqamcuc3nlyg7uqz3292en</id>
    
      <title type="html">📅 Original date posted:2019-03-08 📝 Original message:Hello, ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqs2uv8hqlta9q8vkp67972ldx2l9ufjq0tg30c6eljht9gjnl308tqzyrmp6m6l0f29hwjvxgtslp3s5kk7kxe2m8k09zqamcuc3nlyg7uqz3292en" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqs0pvv3zavhpwjynczvpp5hnp98vynlwzw2a80ndzdmcsapa2ruers3pnh7j&#39;&gt;nevent1q…nh7j&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2019-03-08&lt;br/&gt;📝 Original message:Hello,&lt;br/&gt;&lt;br/&gt;As some of you already know, I&amp;#39;ve been working on a network called&lt;br/&gt;&amp;#34;signet&amp;#34;, which is bascially a complement to the already existing testnet,&lt;br/&gt;except it is completely centralized, and blocks are signed by a specific&lt;br/&gt;key rather than using proof of work.&lt;br/&gt;&lt;br/&gt;Benefits of this:&lt;br/&gt;&lt;br/&gt;1. It is more predictable than testnet. Miners appear and disappear&lt;br/&gt;regularly, causing irregular block generation.&lt;br/&gt;&lt;br/&gt;2. Since it is centrally controlled, it is easy to perform global testing,&lt;br/&gt;such as reorgs (e.g. the network performs a 4 block reorg by request, or as&lt;br/&gt;scheduled).&lt;br/&gt;&lt;br/&gt;3. It is more stable than testnet, which occasionally sees several thousand&lt;br/&gt;block reorgs.&lt;br/&gt;&lt;br/&gt;4. It is trivial to spin up (and shut down) new signets to make public&lt;br/&gt;tests where anyone can participate.&lt;br/&gt;&lt;br/&gt;Anyone can create a signet at any time, simply by creating a key pair and&lt;br/&gt;creating a challenge (scriptPubKey). The network can then be used globally&lt;br/&gt;by anyone, assuming the creator sends some coins to the other participants.&lt;br/&gt;&lt;br/&gt;Having a persistent signet would be beneficial in particular to services&lt;br/&gt;which need a stable place to test features over an extended period of time.&lt;br/&gt;My own company implements protocols on top of Bitcoin with sidechains. We&lt;br/&gt;need multi-node test frameworks to behave in a predictable manner (unlike&lt;br/&gt;testnet) and with the same standardness relay policy as mainnet.&lt;br/&gt;&lt;br/&gt;Signets consist of 2 parameters: the challenge script (scriptPubKey) and&lt;br/&gt;the solution length. (The latter is needed to retain fixed length block&lt;br/&gt;headers, despite having an additional payload.)&lt;br/&gt;&lt;br/&gt;I propose that a default persistent &amp;#34;signet1&amp;#34; is created, which can be&lt;br/&gt;replaced in future versions e.g. if the coins are unwisely used as real&lt;br/&gt;money, similarly to what happened to previous testnets. This signet is&lt;br/&gt;picked by default if a user includes -signet without providing any of the&lt;br/&gt;parameters mentioned above. The key holder would be someone sufficiently&lt;br/&gt;trusted in the community, who would be willing to run the system (block&lt;br/&gt;generation code, faucet, etc). It could be made a little more sturdy by&lt;br/&gt;using 1-of-N multisig as the challenge, in case 1 &amp;lt;= x &amp;lt; N of the signers&lt;br/&gt;disappear. If people oppose this, it can be skipped, but will mean people&lt;br/&gt;can&amp;#39;t just jump onto signet without first tracking down parameters from&lt;br/&gt;somewhere.&lt;br/&gt;&lt;br/&gt;Implementation-wise, the code adds an std::map with block hash to block&lt;br/&gt;signature. This is serialized/deserialized as appropriate (Segwit witness&lt;br/&gt;style), which means block headers in p2p messages are (80 &#43;&lt;br/&gt;solution_length) bytes. Block header non-contextual check goes from&lt;br/&gt;checking if block header hash &amp;lt; target to checking if the payload is a&lt;br/&gt;valid signature for the block header hash instead.&lt;br/&gt;&lt;br/&gt;Single commit with code (will split into commits and make PR later, but&lt;br/&gt;just to give an idea what it looks like):&lt;br/&gt;&lt;a href=&#34;https://github.com/kallewoof/bitcoin/pull/4&#34;&gt;https://github.com/kallewoof/bitcoin/pull/4&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;I don&amp;#39;t think this PR is overly intrusive, and I&amp;#39;m hoping to be able to get&lt;br/&gt;signet code into Bitcoin Core eventually, and am equally hopeful that devs&lt;br/&gt;of other (wallet etc) implementations will consider supporting it.&lt;br/&gt;&lt;br/&gt;Feedback requested on this.&lt;br/&gt;&lt;br/&gt;Attribution: parts of the signet code (in particular signblock and&lt;br/&gt;getnewblockhex) were adapted from the ElementsProject/elements repository.&lt;br/&gt;When PR is split into atomic commits, I will put appropriate attribution&lt;br/&gt;there.&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/20190308/611a55b1/attachment.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20190308/611a55b1/attachment.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-07T20:16:55&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqs03wtfnt0jqacngyy45w05qny6mf2q92zrr675qgvcdl7f30rsc2czyrmp6m6l0f29hwjvxgtslp3s5kk7kxe2m8k09zqamcuc3nlyg7uqzlqaamf</id>
    
      <title type="html">📅 Original date posted:2018-06-05 📝 Original message:On ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqs03wtfnt0jqacngyy45w05qny6mf2q92zrr675qgvcdl7f30rsc2czyrmp6m6l0f29hwjvxgtslp3s5kk7kxe2m8k09zqamcuc3nlyg7uqzlqaamf" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsyhyl8g0xcdrepg7mc3edyklh9tpqlffy5zvs662278jzspfq28rc5397vx&#39;&gt;nevent1q…97vx&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2018-06-05&lt;br/&gt;📝 Original message:On Tue, Jun 5, 2018 at 10:08 AM, Jim Posen &amp;lt;jim.posen at gmail.com&amp;gt; wrote:&lt;br/&gt;&amp;gt; It also derives all bandwidth gains from address reuse. So I&amp;#39;m&lt;br/&gt;&amp;gt; hesitant to make the complexity tradeoff for bandwidth savings due to a&lt;br/&gt;&amp;gt; behavior that is actively discouraged.&lt;br/&gt;&lt;br/&gt;I don&amp;#39;t understand this comment. The bandwidth gains are not from&lt;br/&gt;address reuse, they are from the observed property that false&lt;br/&gt;positives are independent between two filters. I.e. clients that&lt;br/&gt;connect once a day will probably download 2-3 filters at most, if they&lt;br/&gt;had nothing relevant in the last ~144 blocks.&lt;br/&gt;&lt;br/&gt;-Kalle.
    </content>
    <updated>2023-06-07T20:12:44&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsfg9v2kkz36h0stj035zrc24p6pcqru4y0h43p0h6n4np6nhf0qdczyrmp6m6l0f29hwjvxgtslp3s5kk7kxe2m8k09zqamcuc3nlyg7uqzczhvkz</id>
    
      <title type="html">📅 Original date posted:2018-05-18 📝 Original message:On ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsfg9v2kkz36h0stj035zrc24p6pcqru4y0h43p0h6n4np6nhf0qdczyrmp6m6l0f29hwjvxgtslp3s5kk7kxe2m8k09zqamcuc3nlyg7uqzczhvkz" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqstakgkfndwmsfaka8ec8g39lhzfl7yns56leuxxznehsqdzuj7ffqznw7zg&#39;&gt;nevent1q…w7zg&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2018-05-18&lt;br/&gt;📝 Original message:On Fri, May 18, 2018 at 12:25 AM, Matt Corallo via bitcoin-dev&lt;br/&gt;&amp;lt;bitcoin-dev at lists.linuxfoundation.org&amp;gt; wrote:&lt;br/&gt;&amp;gt; In general, I&amp;#39;m concerned about the size of the filters making existing&lt;br/&gt;&amp;gt; SPV clients less willing to adopt BIP 158 instead of the existing bloom&lt;br/&gt;&amp;gt; filter garbage and would like to see a further exploration of ways to&lt;br/&gt;&amp;gt; split out filters to make them less bandwidth intensive. Some further&lt;br/&gt;&amp;gt; ideas we should probably play with before finalizing moving forward is&lt;br/&gt;&amp;gt; providing filters for certain script templates, eg being able to only&lt;br/&gt;&amp;gt; get outputs that are segwit version X or other similar ideas.&lt;br/&gt;&lt;br/&gt;There is also the idea of multi-block filters. The idea is that light&lt;br/&gt;clients would download a pair of filters for blocks X..X&#43;255 and&lt;br/&gt;X&#43;256..X&#43;511, check if they have any matches and then grab pairs for&lt;br/&gt;any that matched, e.g. X..X&#43;127 &amp;amp; X&#43;128..X&#43;255 if left matched, and&lt;br/&gt;iterate down until it ran out of hits-in-a-row or it got down to&lt;br/&gt;single-block level.&lt;br/&gt;&lt;br/&gt;This has an added benefit where you can accept a slightly higher false&lt;br/&gt;positive rate for bigger ranges, because the probability of a specific&lt;br/&gt;entry having a false positive in each filter is (empirically speaking)&lt;br/&gt;independent. I.e. with a FP probability of 1% in the 256 range block&lt;br/&gt;and a FP probability of 0.1% in the 128 range block would mean the&lt;br/&gt;probability is actually 0.001%.&lt;br/&gt;&lt;br/&gt;Wrote about this here: &lt;a href=&#34;https://bc-2.jp/bfd-profile.pdf&#34;&gt;https://bc-2.jp/bfd-profile.pdf&lt;/a&gt; (but the filter&lt;br/&gt;type is different in my experiments)
    </content>
    <updated>2023-06-07T20:12:20&#43;02:00</updated>
  </entry>

</feed>