Kubuxu / go-ipfs-swarm-key-gen

118 stars 60 forks source link

Python port #1

Open machawk1 opened 7 years ago

machawk1 commented 7 years ago

Hi @Kubuxu, I needed the functionality of this package in https://github.com/oduwsdl/ipwb, so ported it to Python at https://github.com/machawk1/piskg but was not sure how else to contact you beyond filing a GitHub issue. I plan on testing this further a la https://github.com/ipfs/go-ipfs/issues/3397#issuecomment-284341649 .

hmeine commented 7 years ago

Thanks for sharing!

hmeine commented 7 years ago

(I must admit, though, that I did not get the relation to the wayback machine.)

Kubuxu commented 7 years ago

@machawk1 I looked at what you sent when you sent it and it looked good. Thanks for sharing it here.

machawk1 commented 7 years ago

@hmeine Thanks for the feedback. I can make that more clear in the docs. OpenWayback indexes WARCs to CDX then on client access, reads the index for the source and offset of the payload in a WARC. ipwb does something similar but with CDXJ and the WARC contents extracted, pushed to, and pulled from IPFS.

The appeal of the IPFS swarm implementation is for collaboratively and more securely sharing WARCs' contents among a set of peers with the key, among a few other approaches I am investigating.

@Kubuxu Thank you! I am hoping to integrate it a bit further and to keep the Python version as to close to parallel with the original Golang version.

Kubuxu commented 7 years ago

The schema right now is very simple, in future if updated version is created the first line of the key will be updated.

This also means that we plan supporting this version of a key for quite a while (at least I hope so).

0zAND1z commented 6 years ago

@machawk1 & team, did you have any success with bridging multiple swarms having different swarm key? Would love to have your input on that. Thx

machawk1 commented 6 years ago

@kggp1995 I have not tested the use case you mentioned but can imagine it being applicable to my own scenarios (involving private sharing of archival collections), so may look further into it.

0zAND1z commented 6 years ago

Thanks for the revert @machawk1 .

Please feel free to share your thoughts in this registered issue: #3

Your inputs would be helpful in the implementation.