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

p2ptrade #16

Open
killerstorm opened this issue Oct 28, 2013 · 6 comments
Open

p2ptrade #16

killerstorm opened this issue Oct 28, 2013 · 6 comments

Comments

@killerstorm
Copy link
Contributor

No description provided.

@arichnad
Copy link
Contributor

What's the plan for p2ptrade? I don't know how we plan on distributing the EOffer and the EProposal objects. I assume it won't go over the bitcoin protocol, right? So we'll be setting up our own network of nodes?

@amidvidy
Copy link
Contributor

interested in helping out with this. Is there some kind of specification for the p2ptrade protocol?

@killerstorm
Copy link
Contributor Author

Here's a brief description: https:/bitcoinx/colored-coin-tools/wiki/p2ptrade

I've already implemented the basic form of it (see here), it works in the sense it is possible to trade, but it is incomplete: it doesn't do all checks.

These checks require understanding of coloredcoinlib's internals, so I'd rather implement them myself.

However, there are various improvements to p2ptrade which we plan to implement:

  1. Support partial fills.
  2. Support for other communication channels, for example, BitMessage or IRC.
  3. Strategies which make p2ptrade less prone to DoS and spam attacks, for example: checks, monitoring, reputation and so on.
  4. Alternative agent behavior strategies. For example, proposing to all matching offers. (This will allow exchange to function even under DoS/spam attack.)

Would you like to implement something from this list? Some of these improvements are fairly self-contained, other ones require changes to internals and research/design...

@amidvidy
Copy link
Contributor

I'll probably start out with (1) to familiarize myself with the codebase a bit, but I'd like to explore 2 & 3 as well. In terms of other communications channels I think it would be interesting to consider a DHT (e.g. Kademlia) based design for higher network scalability. In any case it's something I'll be thinking about. At the moment I'm in exams at school so its unlikely I'll be able to get started for about a week, though.

@amidvidy
Copy link
Contributor

just submitted a pull request to finish up test_basic to familiarize myself with the code. I'll be on IRC later tonight.

@amidvidy
Copy link
Contributor

I've started implementing a generalized order matching engine, with the goal of supporting partial fills as well as scalability for high order volume and many asset pairs. It should be easy to integrate into the p2ptrade agent when it is done.

Code is here: https:/amidvidy/multimatch

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

3 participants