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

is this project similar to: pyp2p ? #153

Closed
Kentoseth opened this issue Aug 18, 2017 · 4 comments
Closed

is this project similar to: pyp2p ? #153

Kentoseth opened this issue Aug 18, 2017 · 4 comments

Comments

@Kentoseth
Copy link

I have been having a discussion with the author of: pyp2p

The discussion is here: StorjOld/pyp2p#42

Are these 2 projects similar, in that I wish to create a bitcoin-like networking layer, where a message is broadcast from 1 node to all other nodes?

@LivInTheLookingGlass
Copy link
Collaborator

I have similar caveats to what the other dev was saying, but yes, you could do this.

The advantage to mine in particular is that (with a bit of effort) you could have browsers communicate this to the whole network as well, with a relay.

The idea would go roughly:

  • there's a network of Python and Node.js nodes using TCP or TLS
  • there's an overlapping set of Node.js nodes using websockets
  • that overlapping set echoes the broadcasts of one network to the other (and does not for whispers)
  • browsers talk to the Node.js nodes which use websockets (since they can neither listen themselves, nor use TCP/TLS).

The big caveat here is that I'm planning to reimplement this in the next year or so. The way I designed it didn't meet a couple of my goals. Namely, the distributed hash table template I gave is very inefficient, and the design is very difficult in statically typed languages.

@LivInTheLookingGlass
Copy link
Collaborator

Actually, if you go back in my documentation from older versions, I think I even used this as an example, using the pycoin library.

These days I imagine you'd use bit instead.

@Kentoseth
Copy link
Author

Actually, if you go back in my documentation from older versions, I think I even used this as an example, using the pycoin library.

Can you share the link to the example?

I would be eager to attempt using this lib (as it seems more frequently maintained/updated). You mentioned that something similar could be achieved with this lib (as pyp2p does), so I would like to reference that example and attempt building my own PoC.

Thanks for your responses so far.

@LivInTheLookingGlass
Copy link
Collaborator

Turns out that I did not use this as an example. I think people told me it was confusing, and I removed it. You want something like the first example in Advanced Usage.

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

No branches or pull requests

2 participants