Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BitTorrent info metadata format as 0x7b #35

Merged
merged 1 commit into from
Mar 8, 2017

Conversation

jeremyBanks
Copy link
Contributor

Adds BitTorrent info metadata format as 0x7b. (Mnemonic: B7 for BitTorrent, but transposed so the value remains one byte after unsigned-varint encoding.) Also adds BitTorrent's bencoding under serialization formats, but leaves it unassigned for now.

I'm working on some software that includes a web gateway for distributed content. It will initially only serve content from BitTorrent torrents, but I'd like to eventually include interlinked IPFS content, so I intend to move to a path scheme that's as similar as possible (ideally the same/compatible) as that used by IPFS/IPLD/CIDv1.

As a first step I believe I need a multicodec assignment for the BitTorrent format, hence this PR.

Also adds BitTorrent's bencoding under serialization formats,
but leaves it unassigned for now.
@daviddias
Copy link
Member

@jeremyBanks I just started working on adding Torrents support to js-ipfs, track the progress here ipfs/js-ipfs#779, you are welcome to join this endeavour if you are interested :)

Going to complete with this PR with the torrent-file multicodec and add one code for bencode :)

@daviddias daviddias changed the base branch from master to feat/torrent-codes March 8, 2017 14:10
@daviddias
Copy link
Member

Going to merge this into a branch of the repo, so I can add stuff
image

@daviddias daviddias merged commit 584a8c1 into multiformats:feat/torrent-codes Mar 8, 2017
@daviddias daviddias mentioned this pull request Mar 8, 2017
@jeremyBanks jeremyBanks deleted the bittorrent branch March 8, 2017 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants