Comment by j0j0r0 on 24/07/2020 at 20:49 UTC

33 upvotes, 1 direct replies (showing 1)

View submission: The Great Reddit Scaling Bake-Off

View parent comment

Cost

Cost estimates (on-chain and off-chain)

For the purpose of this proposal, we assume that all transactions are on chain (posts, replies, and votes).

On the Dragonchain network, transaction costs are deterministic/predictable. By staking TIME on the business node (as described above) Reddit can reduce transaction costs to as low as $0.0000025 per transaction.

┌───────────────┬────────────┐
│     TIME      │    USD     │
╞═══════════════╪════════════╡
│ 0             │ $1.00      ���
├───────────────┼────────────┤
│ 250,000       │ $0.50      │
├───────────────┼────────────┤
│ 500,000       │ $0.25      │
├───────────────┼────────────┤
│ 1,000,000     │ $0.10      │
├───────────────┼────────────┤
│ 2,000,000     │ $0.05      │
├───────────────┼────────────┤
│ 3,000,000     │ $0.03      │
├───────────────┼────────────┤
│ 4,000,000     │ $0.01      │
├───────────────┼────────────┤
│ 7,000,000     │ $0.005     │
├───────────────┼────────────┤
│ 11,000,000    │ $0.0025    │
├───────────────┼────────────┤
│ 17,000,000    │ $0.0010    │
├───────────────┼────────────┤
│ 28,000,000    │ $0.0005    │
├───────────────┼────────────┤
│ 47,000,000    │ $0.00025   │
├───────────────┼────────────┤
│ 78,000,000    │ $0.00010   │
├───────────────┼────────────┤
│ 130,000,000   │ $0.00005   │
├───────────────┼────────────┤
│ 216,000,000   │ $0.000025  │
├───────────────┼────────────┤
│ 360,000,000   │ $0.000010  │
├───────────────┼────────────┤
│ 600,000,000   │ $0.000005  │
├───────────────┼────────────┤
│ 1,000,000,000 │ $0.0000025 │
└───────────────┴────────────┘

Getting Started

How to run it

Building on Dragonchain is simple and requires no blockchain experience. Spin up a business node (L1) in our managed environment (AWS), run it in your own cloud environment, or on-prem in your own datacenter. Clear documentation will walk you through the steps of spinning up your first Dragonchain Level 1 Business node.

Getting started is easy...

1. Download Dragonchain’s dctl

2. Input three commands into a terminal

3. Build an image

4. Run it

More information can be found in our Get started documents.

​

1: https://docs.dragonchain.com/docs/quickstart.html

2: https://docs.dragonchain.com/

Architecture

Dragonchain is an open source hybrid platform. Through Dragon Net, each chain combines the power of a public blockchain (like Ethereum) with the privacy of a private blockchain.

Dragonchain organizes its network into five separate levels. A Level 1, or business node, is a totally private blockchain only accessible through the use of public/private keypairs. All business logic, including smart contracts, can be executed on this node directly and added to the chain.

After creating a block, the Level 1 business node broadcasts a version stripped of sensitive private data to Dragon Net. Three Level 2 Validating nodes validate the transaction based on guidelines determined from the business. A Level 3 Diversity node checks that the level 2 nodes are from a diverse array of locations. A Level 4 Notary node, hosted by a KYC partner, then signs the validation record received from the Level 3 node. The transaction hash is ledgered to the Level 5 public chain to take advantage of the hash power of massive public networks.

Dragon Net can be thought of as a “blockchain of blockchains”, where every level is a complete private blockchain. Because an L1 can send to multiple nodes on a single level, proof of existence is distributed among many places in the network. Eventually, proof of existence reaches level 5 and is published on a public network.

Replies

Comment by j0j0r0 at 24/07/2020 at 20:51 UTC

29 upvotes, 1 direct replies

API Documentation

APIs (on chain & off)

SDK Source

Nobody’s Perfect

Known issues or tradeoffs

1: https://python-sdk-docs.dragonchain.com/latest/

2: https://python-sdk-docs.dragonchain.com/latest/

3: https://godoc.org/github.com/dragonchain/dragonchain-sdk-go

4: https://www.npmjs.com/package/dctl

5: https://docs.dragonchain.com/docs/api-reference.html

6: https://node-sdk-docs.dragonchain.com/latest/classes/dragonchainclient.html

7: https://github.com/dragonchain/dragonchain-sdk-python

8: https://github.com/dragonchain/dragonchain-sdk-python

9: https://github.com/dragonchain/dragonchain-sdk-javascript

10: https://github.com/dragonchain/dragonchain-sdk-javascript

11: https://github.com/dragonchain/dragonchain-sdk-go

12: https://github.com/dragonchain/dragonchain-sdk-go

13: https://github.com/dragonchain/dragonchain-sdk-dart

14: https://github.com/dragonchain/dragonchain-sdk-dart

Costs and resources

Summary of cost & resource information for both on-chain & off-chain components used in the PoC, as well as cost & resource estimates for further scaling. If your PoC is not on mainnet, make note of any mainnet caveats (such as congestion issues).

15: https://metrics.dragonchain.com

Every transaction on the PoC system had a transaction fee of $0.0001 (one-hundredth of a cent USD). At 256MM transactions, the demo cost $25,600. With current operational fees, the same demonstration would cost $640 USD.

For the demonstration, to achieve throughput to mimic a worldwide payments network, we modeled several clients in AWS and 4-5 business nodes to handle the traffic. The business nodes were tuned to handle higher throughput by adjusting memory and machine footprint on AWS. This flexibility is valuable to implementing a system such as envisioned by Reddit. Given that Reddit’s daily traffic (posts, replies, and votes) is less than half that of our demo, we would expect that the entire Reddit system could be handled on 2-5 business nodes using right-sized containers on AWS or similar environments.

Verification was accomplished on the operational Dragon Net network with over 700 independently owned verification nodes running around the world at no cost to the business other than paid transaction fees.