From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 14FB5CBA for ; Wed, 27 Jun 2018 14:11:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.sldev.cz (mail.sldev.cz [88.208.115.66]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 5EFD817E for ; Wed, 27 Jun 2018 14:11:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.sldev.cz (Postfix) with ESMTP id ABB4BE1045; Wed, 27 Jun 2018 14:11:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.sldev.cz Received: from mail.sldev.cz ([127.0.0.1]) by localhost (mail.sldev.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aSEC8QgYqnqq; Wed, 27 Jun 2018 14:11:50 +0000 (UTC) Received: from [10.8.0.37] (unknown [10.8.0.37]) by mail.sldev.cz (Postfix) with ESMTPSA id EAE15E0F27; Wed, 27 Jun 2018 14:11:49 +0000 (UTC) To: William Casarin References: <21a616f5-7a17-35b9-85ea-f779f20a6a2d@satoshilabs.com> <20180621195654.GC99379@coinkite.com> <87h8lpbi39.fsf@jb55.com> From: matejcik Openpgp: preference=signencrypt Autocrypt: addr=jan.matejek@satoshilabs.com; prefer-encrypt=mutual; keydata= xsFNBFqFmMgBEADPJ8NULpuu0nwox/tIfo+slGfcXZLUEZstNoaY9QgNuILJRtoJ6xZy8rQf S7iQlkaZcrpMJYdZtkRHvndkceBxesCG8io6tsU+t2SK6AvaW0FG95a9shFM/U9/JVO/QmBi IuQzbiE2XTZ/JStyEp4zpuyJqX1o9gzS/4MBXwj7Rzk8u+fHI28h96HILC2a0mC+c2gJ7f5t o/w+vxFZmk06COK08W5+odb9I8mjs0uf7jgTUEFrfwi6oCoTFmSon7cOy/WTieClwF/vUKuJ DBAtsMh2rxh8IHyH8xp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BfV3htCjYTHS Qx2jQO4CTbcSEbkVwNv56OiZroabrHRf0WUSyzElf13P/MRFjUJFYYZDqc0iOWUh4QeXbFiY fLYpOCtm0nqaDdG1VD4jMpKq1FKBvTw4id1i7pONENd4BB7ytnDvKGdVI6oDnGUBsc5VUrEa h1PbbshNMbRtFigeMe8998jWhK4jQzeuDr0FSBlhxbluGfyMUgk7s6aBC9BOsdDkgtJk1Fd/ j9sWOj8Pxzc4lMQRfygm+QxxLdqa36Qh3oK+jfK7362CXlqBfb9ryerjfFGY4VqMBzQ+BFtj lYZSdVzGWlmLD9D88wzeByIZMScQPvrXSFwPO2/TuOQNCo0VHcgHpNFzeMRK2eT8bhry+dlq U+0Kxy2gQijw9j/EZlqR3w053EwUrfAAmHHeYPimXK4pc8oSw0s1A6hQO7Vc0SgblF8taFTM UhRR7xZg+l5vybAgrDYVL75b9CDscZqd7WVmZx+xU23sUG6SaxXI7PV6bPuMug0fD3SAsieu +vypQ3jCcUKGrA== Message-ID: <608aabec-3d8f-4377-950b-c76d3c0ad703@satoshilabs.com> Date: Wed, 27 Jun 2018 16:11:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <87h8lpbi39.fsf@jb55.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="UOnyYPKF090onW1oyv6oKKTd2dQf6ISUP" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org X-Mailman-Approved-At: Wed, 27 Jun 2018 14:13:34 +0000 Cc: Bitcoin Protocol Discussion Subject: Re: [bitcoin-dev] BIP 174 thoughts X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Bitcoin Protocol Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2018 14:11:54 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --UOnyYPKF090onW1oyv6oKKTd2dQf6ISUP Content-Type: multipart/mixed; boundary="6BMN3o7hYINwA4s2jstv0TzV6471N8RDy"; protected-headers="v1" From: matejcik To: William Casarin Cc: Bitcoin Protocol Discussion Message-ID: <608aabec-3d8f-4377-950b-c76d3c0ad703@satoshilabs.com> Subject: Re: [bitcoin-dev] BIP 174 thoughts References: <21a616f5-7a17-35b9-85ea-f779f20a6a2d@satoshilabs.com> <20180621195654.GC99379@coinkite.com> <87h8lpbi39.fsf@jb55.com> In-Reply-To: <87h8lpbi39.fsf@jb55.com> --6BMN3o7hYINwA4s2jstv0TzV6471N8RDy Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable hello, On 26.6.2018 18:58, William Casarin wrote: > as a data point, I was able to build a simple serializer[1] in about an= > afternoon. I would much prefer to use this lib in say, clightning (my > original goal), without having to have the larger protobuf dependency. To drive my point home, here's a PR converting the `writer` part of your code to a protobuf-compatible version. It took me less than an hour to write, the bigger part of which was spent orienting myself in unfamiliar code. I assume I could do `reader` in less than that, if your deserialization code was complete. https://github.com/jb55/libpsbt/pull/3/files This code produces PSBTs that my "bip174 playground" can correctly parse.= regards m. >=20 > Cheers, >=20 > [1] https://github.com/jb55/libpsbt >=20 >=20 > -- > https://jb55.com >=20 --6BMN3o7hYINwA4s2jstv0TzV6471N8RDy-- --UOnyYPKF090onW1oyv6oKKTd2dQf6ISUP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJbM5slAAoJEMZ/sQbk7RceXCkQALzBPHw3RLNm/uqHnI1KN0tw 7lnTenK28sweejHODvWk+puPXWjxK7nOen/VA3mYf584XZkOva9ArPWTbNW9o7N9 YIQCaPTP48tFcomobqjdU/FtEJCVz6cZcpKX9WYKSKGZw1YL5npIYgpJpRL/zgZo ZRt7Tf2nDtrVXax1MI7yackbgpsi5W3LZVOCRBELkSAzdCwf2tTvkvqNuQN+7Wgk ywxD4NGta+Wxd3MJK5qJN+ny1vJdzg4C7JO29SnVocGTxS172bVIH69EbXc7HIir 2Mhyl5nC2viEdnVf6STy8ajlXSTcwL/F9sEqUfYV9gUWgnUkedz+iry0SbUeeywy a/ECCryT9mynahR9419xqxujeBPx1EWsDIDWPwFI/BTgAeeMRFuLyvLLJHgfOtg0 wdrGsw0dIt6S6fLwOV7WkdTA2QoGT4Svu5ntctTd1iWOLMcRmL/W2F+zEHXJ/rum 9GPk6Q9XP9joEozhB9rEkOJAFUd3VVXE5NIYP38icuN7na7GTmiwJK2J3EL45gFU c8F/MGS28gYr9GYDJ7AexiO3zAyuj4IpXuph9FPHqaQFLuQdoAAgkqSLfhGxqigT UEgxNfc5xwAqXww+jh94fTXl+qfQP7Q8OI71ccGLhd68LMLkvLRFvSywKA8YT1Sw exvW86WhVvhxtzqDuTkX =8r7l -----END PGP SIGNATURE----- --UOnyYPKF090onW1oyv6oKKTd2dQf6ISUP--