Proposal for a few IANA mime-types related to Bitcoin



Summary:

The use of UR encoding for PSBT data in a web context, NFC or email is not recommended due to the lack of IANA mime-types for QR codes. Animated QR codes may be the only use case that could justify introducing new technology, such as ByteWords, a unique checksum algo (Xoshiro256), fountain codes (Luby Transform) and CBOR, just to wrap a few k of binary. However, CBOR is still considered to be the best. Christopher Allen notes that many wallet companies are now supporting the UR encoded version of PSBTs, which allows for better QR & Airgap solutions, and also leverages CBOR which is an IETF standard. There is a community of Airgap wallet developers at https://github.com/BlockchainCommons/Airgapped-Wallet-Community and libraries at https://github.com/BlockchainCommons/crypto-commons#urs. He suggests registering UR as well, maybe as bitcoin/psbt+ur.Peter D.Gray has proposed registering several MIME (RFC 2046) media types with the IANA, including bitcoin/psbt, bitcoin/txn, and bitcoin/uri. These may be useful for web servers and elsewhere, but their approval by IANA remains uncertain. Other thoughts are provided, such as using optional parameters to indicate base64 or hex encoding and the usefulness of these types in NFC (NDEF records) where shorter length is critical. The current approved MIME types can be found at https://www.iana.org/assignments/media-types/media-types.xhtml.


Updated on: 2023-06-15T01:22:42.662088+00:00