Skip to content
XDAG (Dagger Coin) Official Main Repository. XDAG is a novel DAG based cryptocurrency.
Branch: master
Clone or download
Sofarlemineur Change edward ip
51.75.145.181:13655 >  136.243.57.79:13655
Latest commit ba8db9a Apr 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE
automake update Makefile & Makefile.am Nov 2, 2018
client
dnet
documentation Create github-issue-guide.md May 12, 2018
dus/programs re-format code Jun 27, 2018
ldus/source/include/ldus Windows compilation is fixed. Aug 11, 2018
mac remove dylib to solve distribution issue. Nov 10, 2018
secp256k1
win Fixes for the win compilation Nov 5, 2018
.gitignore Merge branch 'develop' into secp256k1-backup Jun 21, 2018
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md Dec 16, 2018
CONTRIBUTORS.md Update CONTRIBUTORS.md May 1, 2018
Contributing.md
LICENSE Create LICENSE (#57) Mar 29, 2018
Protocol-cn.md fix 'block' term wrongly written in Chinese (Protocol-cn.md) Jun 6, 2018
Protocol.md
README.md
README.rus
WhitePaper zh-cn.md
WhitePaper.md

README.md

The Dagger (XDAG) cryptocurrency

  • Community site: https://xdag.io
  • The Main net was launched January 5, 2018 at 22:45 GMT

Principles:

  • Directed acyclic graph (DAG), not blockchain
  • Block = transaction = address
  • Original idea and implementation
  • Mineable, no premine, no ICO
  • Mining new money every 64 seconds

Status:

Throughput Graph

HOW-TO:

Docs:

Main chain idea:

Every block in DAG has up to 15 links to another blocks (inputs and outputs). Block B is referenced by another block A if we can reach B from A by following the links. Chain is a sequence of blocks each of which is referenced by the previous block. Chain is called distinct if every its block belongs to separate 64-seconds interval. Difficulty_of_block is 1/hash where hash is sha256(sha256(block)) regarded as little-endian number. Difficulty_of_chain is sum of difficulties of blocks. Main_chain is the distinct chain with maximum difficulty. Blocks in main chain are called main_blocks.

Daggers are mined in every main block. For first 4 years 1024 XDAG are mined in each main block. For second 4 years - 512 XDAG, and so on. So, maximum XDAG supply is approximately power(2,32). Each dagger is equal to power(2,32) cheatoshino. Transaction is valid if it is referenced by a main block. Valid transactions are strictly ordered depending on main chain and links order. Double spending is prohibited because only first concurrent transaction (by this order) is applied.

Structure of block:

The on-disk format will change in the future. Consider this the network protocol. Each block has a fixed size of 512 bytes. Block consists of 16 fields each of which has length 32 bytes. Field 0 is header, it consists of 4 quadwords:

  • transport-layer header
  • types of all 16 fields, 4 bits for one type
  • timestamp of the block, in seconds from Unix era * 1024
  • block fee in cheatoshi

Types of fields:

  1. nonce
  2. header
  3. transaction input: 24 lower bytes of block hash and 8 bytes of input amount
  4. transaction output, structure is the same as input
  5. half of block signature; ECDSA number r or s; digest for signature is hash of (block concate public key)
  6. half of output signature; only owner of this key can use this block as input
  7. public key (x) with even y
  8. public key with odd y
  9. header of testnet
  10. ... 15. are reserved for future usage.

Transport layer:

The dnet network is used as transport layer. A new transport layer will come in the future.

Maintainers:

Evgeniy ( XDAG: gKNRtSL1pUaTpzMuPMznKw49ILtP6qX3, BTC: 1Jonano4esJzZvqNtUY6NwfPme3EMpVs7n )
Frozen ( XDAG: +L5dzSh1QZv1We3wi8Of31M8eHwQJq4K )

Full list of contributors

You can’t perform that action at this time.