{"id":13605687,"url":"https://github.com/XDagger/xdag","last_synced_at":"2025-04-12T05:34:20.317Z","repository":{"id":29049364,"uuid":"117907222","full_name":"XDagger/xdag","owner":"XDagger","description":"XDAG (Dagger Coin) Official Main Repository.  XDAG is a novel DAG based cryptocurrency.","archived":false,"fork":false,"pushed_at":"2024-03-17T09:54:23.000Z","size":13979,"stargazers_count":328,"open_issues_count":35,"forks_count":130,"subscribers_count":77,"default_branch":"master","last_synced_at":"2024-08-02T19:38:13.952Z","etag":null,"topics":["bitcoin","blockchain","blockchain-technology","cryptocurrency","dag","dagger","xdag","xdagger"],"latest_commit_sha":null,"homepage":"https://xdag.io","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"iblockchain/cheatcoin","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/XDagger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"Contributing.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-17T23:55:56.000Z","updated_at":"2024-07-05T17:07:49.000Z","dependencies_parsed_at":"2023-01-14T14:15:18.569Z","dependency_job_id":null,"html_url":"https://github.com/XDagger/xdag","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XDagger%2Fxdag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XDagger%2Fxdag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XDagger%2Fxdag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XDagger%2Fxdag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XDagger","download_url":"https://codeload.github.com/XDagger/xdag/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223497991,"owners_count":17155236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitcoin","blockchain","blockchain-technology","cryptocurrency","dag","dagger","xdag","xdagger"],"created_at":"2024-08-01T19:01:01.594Z","updated_at":"2024-11-07T10:31:05.451Z","avatar_url":"https://github.com/XDagger.png","language":"C","readme":"[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FXDagger%2Fxdag.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FXDagger%2Fxdag?ref=badge_shield)\r\n\r\nThe Dagger (XDAG) cryptocurrency\r\n================================\r\n- Community site: https://xdag.io  \r\n- The Main net was launched January 5, 2018 at 22:45 GMT  \r\n\r\nPrinciples:\r\n----------\r\n\r\n- Directed acyclic graph (DAG), not blockchain  \r\n- Block = transaction = address  \r\n- Original idea and implementation  \r\n- Mineable, no premine, no ICO  \r\n- Mining new money every 64 seconds  \r\n\r\n\r\nHOW-TO:  \r\n----------\r\n\r\n- [How to get a wallet](https://github.com/XDagger/xdag/wiki/Get-a-wallet)  \r\n- [How to getting started](https://github.com/XDagger/xdag/wiki/Getting-started)  \r\n- [How to find pools](https://github.com/XDagger/xdag/wiki/Mineable-Pool-List)  \r\n- [How to contribute](https://github.com/XDagger/xdag/blob/master/Contributing.md)  \r\n\r\nDocs:  \r\n----------\r\n- [Wiki](https://github.com/XDagger/xdag/wiki)\r\n- [Whitepaper](https://github.com/XDagger/xdag/blob/master/WhitePaper.md)  [中文版](https://github.com/XDagger/xdag/blob/master/WhitePaper%20zh-cn.md)  \r\n- [Protocol](https://github.com/XDagger/xdag/blob/master/Protocol.md)  [中文版](https://github.com/XDagger/xdag/blob/master/Protocol-cn.md)  \r\n- [License](https://github.com/XDagger/xdag/blob/master/LICENSE)  \r\n\r\nMain chain idea:\r\n---------------\r\n\r\nEvery block in DAG has up to 15 links to another blocks (inputs and outputs).\r\nBlock B is _referenced_ by another block A if we can reach B from A by following the links.\r\n_Chain_ is a sequence of blocks each of which is referenced by the previous block.\r\nChain is called _distinct_ if every its block belongs to separate 64-seconds interval.\r\n_Difficulty_of_block_ is 1/hash where _hash_ is sha256(sha256(block)) regarded as little-endian number.\r\n_Difficulty_of_chain_ is sum of difficulties of blocks.\r\n_Main_chain_ is the distinct chain with maximum difficulty.\r\nBlocks in main chain are called _main_blocks_.\r\n\r\nDaggers are mined in every main block. There are three periods of mining:\r\n\r\n| Stage 1 | Stage 2 | Stage 3 |\r\n| -- | -- | -- |\r\n| Block #1 to #1,017,322 | Block #1,017,323 to #2,097,151 | Each 2,097,152 blocks |\r\n| 1024 XDAG each block | 128 XDAG each block | 64 * (1/2)^n XDAG each block |\r\n\r\nThe maximum XDAG supply is approximately 1.446294144 billion.\r\n\r\nEach dagger is equal to power(2,32) cheatoshino.\r\nTransaction is _valid_ if it is referenced by a main block.\r\nValid transactions are strictly ordered depending on main chain and links order.\r\nDouble spending is prohibited because only first concurrent transaction (by this order) is applied.\r\n\r\n\r\nStructure of block:\r\n------------------\r\n\r\n_The on-disk format will change in the future. Consider this the network protocol._\r\nEach block has a fixed size of 512 bytes.\r\nBlock consists of 16 fields each of which has length 32 bytes.\r\nField 0 is header, it consists of 4 quadwords:\r\n- transport-layer header\r\n- types of all 16 fields, 4 bits for one type\r\n- timestamp of the block, in seconds from Unix era * 1024\r\n- block fee in cheatoshi\r\n\r\nTypes of fields:\r\n\r\n0. nonce\r\n1. header\r\n2. transaction input: 24 lower bytes of block hash and 8 bytes of input amount\r\n3. transaction output, structure is the same as input\r\n4. half of block signature; ECDSA number r or s; digest for signature is hash of (block concate public key)\r\n5. half of output signature; only owner of this key can use this block as input\r\n6. public key (x) with even y\r\n7. public key with odd y\r\n8. header of testnet\r\n9. ... 15. are reserved for future usage.  \r\n\r\n\r\nTransport layer:\r\n---------------\r\n\r\nThe dnet network is used as transport layer.\r\n_A new transport layer will come in the future._\r\n\r\n\r\nMaintainers:\r\n---------------\r\n[Evgeniy](https://github.com/jonano614) ( XDAG: gKNRtSL1pUaTpzMuPMznKw49ILtP6qX3, BTC: 1Jonano4esJzZvqNtUY6NwfPme3EMpVs7n )  \r\n[Frozen](https://github.com/xrdavies) ( XDAG: ~~+L5dzSh1QZv1We3wi8Of31M8eHwQJq4K~~ ) \r\n\r\n\r\nCode Contributors:\r\n---------------\r\n\r\n\u003ca href = \"https://github.com/XDagger/xdag/graphs/contributors\"\u003e\r\n  \u003cimg src = \"https://contrib.rocks/image?repo=XDagger/xdag\"/\u003e\r\n\u003c/a\u003e\r\n\r\n\r\n* [trueserve](https://github.com/trueserve)\r\n* [sgaragagghu](https://github.com/sgaragagghu)\r\n* [Sofarlemineur](https://github.com/Sofarlemineur)\r\n* [Chen Zhen](https://github.com/czsilence)\r\n* [kbs1](https://github.com/kbs1)\r\n* [amwsffgu](https://github.com/amwsffgu)\r\n* [s2n-gribbly](https://github.com/s2n-Gribbly)\r\n* [reymondtu](https://github.com/reymondtu)\r\n* [sugaryen](https://github.com/sugaryen)\r\n* [mojs78](https://github.com/mojs78)\r\n* [rubencm](https://github.com/rubencm)\r\n* [SantoMacias](https://github.com/SantoMacias)\r\n* [cnukaus](https://github.com/cnukaus)\r\n* [mathsw](https://github.com/mathsw)\r\n* [ruben](https://github.com/xdgruben)\r\n* [Dengfeng Liu](https://github.com/liudf0716)\r\n* [BinaryOverflow](https://github.com/BinaryOverflow)\r\n* [Caleb Marshall](https://github.com/cmarshall108)\r\n* [NKU-Nikoni](https://github.com/NKU-Nikoni)\r\n* [Elder Ryan](https://github.com/RyanKung)\r\n* [hughchiu](https://github.com/hillhero789)\r\n* [Mingege](https://github.com/Mingege-cc)\r\n* [p2peer](https://github.com/p2peer)\r\n* [ZR](https://github.com/zergl)\r\n\r\n[Full list of contributors](https://github.com/XDagger/xdag/blob/master/CONTRIBUTORS.md) including all contributors for XDAG sub-projects.\r\n\r\n\r\n## License\r\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FXDagger%2Fxdag.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2FXDagger%2Fxdag?ref=badge_large)\r\n","funding_links":[],"categories":["C","Cryptocurrencies"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FXDagger%2Fxdag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FXDagger%2Fxdag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FXDagger%2Fxdag/lists"}