Protocol Specification

Discussion in 'Technical Development' started by bkolobara, Dec 29, 2015.

Tags:
  1. 2017/12/15 - Decred v1.1.2 released! → Release Notes  → Downloads
  1. bkolobara

    bkolobara New Member

    Dec 29, 2015
    4
    5
    Male
    Hi,

    does Decred use the same protocol as bitcoin (https://en.bitcoin.it/wiki/Protocol_documentation) except just different signing/hashing algorithms?

    In Pieter Wuille's presentation about Segregated Witness [1] he mentions if they would be designing bitcoin from scratch the protocol would look very different. And in my experience bitcoin's protocol is a big mess with mixing little-big endian and stuff like VarInts make it just hard to parse without providing any real benefit.

    Because Decred is starting from scratch there is a big opportunity here to apply all the knowledge we learned from bitcoin development in the last 5 years. E.g. integrating SegWit and LN not just as hacks on top of an already bad protocol, instead making them core parts.

    [1] https://goo.gl/fL0Nvu
     
    pkothbauer likes this.
  2. S1lentB0SS

    S1lentB0SS New Member

    Dec 28, 2015
    56
    18
    Male
    Great Idea!!! But it is important that we create a new way to mining and also a new basic script i think. We have to be careful to not do the same errors again like bitcoins has done, but on the other site we can take advance of all the good stuff we have learned feom btc
     
    Renato Abreu and Michael like this.
  3. pkothbauer

    pkothbauer New Member

    Dec 16, 2015
    9
    13
    Male
    This is a great idea - especially the data format part. Does anyone know of any research looking at the reasoning behind the use of the various data formats and possible replacements to reduce the number of formats?
     
  4. Costin

    Costin Member
    Advocate (Twitter)

    Dec 28, 2015
    243
    84
    Male
    JavaScript
    Liverpool
    We have a badass BLAKE256 hash algorithm but my bet is we're on the same protocol as BTC.
     
  5. kirigi

    kirigi Jr. Member

    Dec 29, 2015
    15
    33
    crypt-analyst/researcher
    i assume that project would NOT be from scratch, it would have some/most code base same...
     
    raahi likes this.
  6. Costin

    Costin Member
    Advocate (Twitter)

    Dec 28, 2015
    243
    84
    Male
    JavaScript
    Liverpool
    Yeah, I exagerated with same but, pretty much I guess, there are like 20k lines though.
     
    chris and S1lentB0SS like this.
  7. ceejep

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
    Almost everything has been adjusted in one way or another. For backwards compatibility reasons, some portions of bizarre 'endianness' have been kept. These include printing hashes backwards. On the other hand, things like getwork header int32 endianness swaps were removed. Numerous bugs were also fixed. One example is having to rehash an entire transaction N times where N is the number of inputs for SIGHASH_ALL verification.
     
  8. Renato Abreu

    Renato Abreu Jr. Member
    Advocate (Twitter)

    Jan 3, 2016
    252
    45
    Male
    Programador
    Brazil
    Not forgetting that the decred its essence is a (POW / POS) hybridized consensus system proof-of-work.
     
    raahi likes this.
  9. jy-p

    jy-p Sr. Member
    Organizer

    Jan 2, 2016
    133
    340
    Male
    Keep in mind that most of the dev work done thus far with Decred has focused on tangible features that differentiate it from Bitcoin. The Decred devs are certainly aware of these myriad quirks in the code, but removing them doesn't change the externalities of the code for the average user.

    That said, we are definitely open to fixing these various quirks as Decred evolves. By hybridizing PoW and PoS, Decred gains continuity across hard forks in a way that is not possible with Bitcoin, so fixing problems in consensus code is much less daunting a task.
     
    tacotime and Renato Abreu like this.
  10. Maicol792

    Maicol792 New Member
    Advocate (BitcoinTalk)

    Jan 5, 2016
    40
    22
    Male
    Hello the algo blake256 14 round... for Decred are now used from Saffroncoin exatly?? now i testing my miner whit this cgminer version modded for this.. this miner version is supported and valid for mining decred? i have found this info here:

    AMD GPU :Cgminer 3.7.2 blake sources - https://github.com/Griffitsj/cgminer-saffron/
    Cgminer 3.7.2 blake windows - https://github.com/Griffitsj/cgmine...nload/saffron-1.0/cgminer-saffron-windows.zip

    on this mining pool: http://www.miners-pool.eu/#!/pools
     
  11. ceejep

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
    The kernel may work, but I ended up just writing my own. They don't have our block header specifications, so that miner will not work. It may give you a reasonable estimation of hash rate for the chain.
     
    tacotime and Gorei like this.
  12. zero

    zero Full Member

    Jan 1, 2016
    288
    121
    Male
    Do we know which ports will Decred client use? Because in some routers we have to open/forward them.
     
  13. Renato Abreu

    Renato Abreu Jr. Member
    Advocate (Twitter)

    Jan 3, 2016
    252
    45
    Male
    Programador
    Brazil
    I think we have to wait for instructions from developers
     
  14. above

    above New Member

    Jan 12, 2016
    33
    13
    I hope mining instructions are dumbed down for beginners to get involved aswell.
     
  15. shoshin

    shoshin Member

    Dec 28, 2015
    86
    94
    Male
    I am sure they will be as simple as possible.... And if anyone needs further assistance the community will be here.
     
    tacotime likes this.

Share This Page