Return-Path: Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 13743C000E for ; Tue, 31 Aug 2021 18:36:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id EA720824E3 for ; Tue, 31 Aug 2021 18:36:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Spam-Flag: NO X-Spam-Score: -1.901 X-Spam-Level: X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q6HYYG04Kr9p for ; Tue, 31 Aug 2021 18:36:43 +0000 (UTC) X-Greylist: delayed 00:08:58 by SQLgrey-1.8.0 Received: from smtp116.iad3a.emailsrvr.com (smtp116.iad3a.emailsrvr.com [173.203.187.116]) by smtp1.osuosl.org (Postfix) with ESMTPS id E355081882 for ; Tue, 31 Aug 2021 18:36:42 +0000 (UTC) X-Auth-ID: peter@coinkite.com Received: by smtp7.relay.iad3a.emailsrvr.com (Authenticated sender: peter-AT-coinkite.com) with ESMTPSA id E97154FAA for ; Tue, 31 Aug 2021 14:27:42 -0400 (EDT) Date: Tue, 31 Aug 2021 14:27:41 -0400 From: "Peter D. Gray" To: bitcoin-dev@lists.linuxfoundation.org Message-ID: <20210831182741.GV91472@coinkite.com> Reply-To: Peter Gray References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cnBsrynPgIOyCJkL" Content-Disposition: inline In-Reply-To: Organization: Coinkite Inc. (www.coinkite.com) X-Classification-ID: 1a7c3c36-638e-423e-bfd9-693a28366ca7-1-1 X-Mailman-Approved-At: Tue, 31 Aug 2021 18:40:48 +0000 Subject: [bitcoin-dev] Proposal for a few IANA mime-types related to Bitcoin X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Bitcoin Protocol Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2021 18:36:47 -0000 --cnBsrynPgIOyCJkL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi list! I am proposing to register the following MIME (RFC 2046) media types with the IANA: bitcoin/psbt - aka. a BIP-174 file, in binary - does not make any claims about signed/unsigned status; lets leave that to the file bitcoin/txn - aka. wire-ready fully-signed transaction in binary bitcoin/uri - aka [BIP-21](https://github.com/bitcoin/bips/blob/master/bip-0021.mediawiki) - could be just a bare bech32 or base58 payment address - but can also encode amount, comments in URL args - potentially interesting as a response to 402 - Payment required Other thoughts - some mime-types are proposed in BIP-71 but those are unrelated to above, and never seem to have been registered - for those who like to encode their binary as base64 or hex, that can be indicated as "encoding=hex" or "encoding=base64" in the optional parameters, just like "text/plain; encoding=utf-8" does. However, the default must be binary. - although the above are useful for web servers, they are also useful elsewhere and I intend to use them in NFC (NDEF records) where a shorter length is critical. - I have no idea how easily IANA will accept these proposals. - current approved mime types: https://www.iana.org/assignments/media-types/media-types.xhtml Thoughts? --- @DocHEX || Coinkite || PGP: A3A31BAD 5A2A5B10 --cnBsrynPgIOyCJkL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEERYl3mt/BTzMnU06oo6MbrVoqWxAFAmEudJcACgkQo6MbrVoq WxDyFAf+OpKNTNC2RPKj6dnMY163oeWyDyTAs/h0S/L1nDpfkDgumgldw9/l7D/D 3lah4AhYXInj9cHx+5A+m+XX5f8Dwk0I+YjsExKG7mWTBFjwkEVNqNe0xmAKPqBy EXXh7YwXTfal+MbANsOaBimQhz4mkkbqkyJgVaRGmaP7/ZxEw9KkWAYNvkKc7T2U XRIshhJdSbp9HSV37w2KqENIlyE/I5XY/VxNJ7oYcTfHhKo6KKgJxNoI7g6lQubZ 0PVFkxv/HIsLW0VpKtnowhcpcx0yFLJPw04czqgdKG/Nrb4IeTtY+dzPMHNLkgu3 03GtYIR9s3LzxzyyvrWY58lqwn3HUA== =qtki -----END PGP SIGNATURE----- --cnBsrynPgIOyCJkL--