Welcome to the Dash Forum!

Please sign up to discuss the most innovative cryptocurrency!

OpenBazaar DASH fork?

Discussion in 'Pre + Budget Proposal Discussions' started by JZA, Sep 8, 2016.

  1. JZA

    JZA Active Member

    Joined:
    Jan 4, 2016
    Messages:
    511
    Likes Received:
    226
    Trophy Points:
    113
    Dash Address:
    XmZ3aBBWJdYa6hUJkWbTvwHMwMscmHQFNH
    A talk on DASH knights about possibility to have an OpenBazaar fork for DASH, given that:
    a) OB is FLOSS
    b) OB is Python
    d) Why not?

    This will enable to have a DASH centric dameon, looking at the OB-Server code the requirements for bitcoin are bitcoin-tools, python-libbitcoinclient and python-bitcoinlib.

    I am not related with a couple of the libraries so I want to open a discussion to people that has worked more with such libraries and see how plausible is this fork to happen and how much amount of work would it take.

    Should it be as simple as redirect the bitcoind to a dashd or would it also need to fork such dependencies to a point that is unmanageable.

    I haven't look at the source code for bitcoinlib and libbitcoinclient, I know bitcoin-tools are more trivial, since is mostly a collection of scripts.
     
  2. GNULinuxGuy

    GNULinuxGuy Member

    Joined:
    Jul 22, 2014
    Messages:
    112
    Likes Received:
    68
    Trophy Points:
    78
    Dash Address:
    XjkXfrYTSvdYe4738DtNVX5XfUz7qU9HnY
  3. JZA

    JZA Active Member

    Joined:
    Jan 4, 2016
    Messages:
    511
    Likes Received:
    226
    Trophy Points:
    113
    Dash Address:
    XmZ3aBBWJdYa6hUJkWbTvwHMwMscmHQFNH
    I read a few posts from that thread but there is not really any code discussion unfortunately. Most of the posts talk about, why should we be the ones who pay for this? OpenBazaar team says is too much work...

    I wonder if there is more technical disucsions on what are the technical roadblocks to achieve this. I have only read the code on OBS, not the client, but from the server I can say that all it does is a remote socket connection. tcp://libbitcoin2.openbazaar.org:9091

    Aside from that most of the code is sort of standard and should be able to work with DASH. The big thing is really 2 files, the market/contract.py file and the market/transaction.py files.

    Both uses the following submodules from the python-bitcoinlib module: from bitcoin.core.script import CScript, OP_2, OP_3, OP_CHECKMULTISIG and
    from bitcoin.wallet import P2SHBitcoinAddress, P2PKHBitcoinAddress, CBitcoinAddress

    So basically one is to create the transactions and the other is to manipulate the addresses. This shouldn't be a huge roadblock given that the dash wallet will have some analog functionality to both create and sign transactions.
     
  4. GNULinuxGuy

    GNULinuxGuy Member

    Joined:
    Jul 22, 2014
    Messages:
    112
    Likes Received:
    68
    Trophy Points:
    78
    Dash Address:
    XjkXfrYTSvdYe4738DtNVX5XfUz7qU9HnY
    The thread starts off with a lot of debate, but ends with quite a bit of useful technical discussion. If you're familiar with Go, then I suggest coordinating with @flare. Good luck! :)
     
  5. JZA

    JZA Active Member

    Joined:
    Jan 4, 2016
    Messages:
    511
    Likes Received:
    226
    Trophy Points:
    113
    Dash Address:
    XmZ3aBBWJdYa6hUJkWbTvwHMwMscmHQFNH
    I have used Go but I am more of a Python guy.

    I've found my answer which is basically you need to port the requirements and I think that's the real problem of the port.

    The python-libbitcoinclient and python-bitcoinlib libraries which are independent of the openbazaar project would need to be re-formatted.

    I can't really understand however why would they want to make it more complicated by switching it to Go. Since this can also represent trying to port the functionality of these libraries but also their own requirements Go-compliant.

    I for once would prefer to stick with python, and just reroute the instructions to the dash server, although if these libraries actually go that deep to create a bootstrapped version of dashd then I guess it might be a good idea to think Go instead of C/C++.
     
    #5 JZA, Sep 8, 2016
    Last edited: Sep 8, 2016
  6. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,964
    Likes Received:
    6,737
    Trophy Points:
    1,283
    you should really post / talk to the guys in that OB thread
    akhavr and ashmoron forgot his name now really looked into this in details and ashmoron did a bunch of work on that already
    they know best + there s another thread with much more technical talk and discussions
     
  7. JZA

    JZA Active Member

    Joined:
    Jan 4, 2016
    Messages:
    511
    Likes Received:
    226
    Trophy Points:
    113
    Dash Address:
    XmZ3aBBWJdYa6hUJkWbTvwHMwMscmHQFNH
    Links?
    I have been talking with a OB Chris Pacia from the OB team, he let me into some good info about the new OB. AFAIK the way is design is a custom spv wallet.
    https://github.com/OpenBazaar/openbazaar-go/blob/master/bitcoin/wallet.go
     
  8. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,964
    Likes Received:
    6,737
    Trophy Points:
    1,283
  9. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,964
    Likes Received:
    6,737
    Trophy Points:
    1,283
    • Like Like x 1