RISE (crowdsale is open)

in crypto-news •  9 years ago  (edited)

Multi-language Decentralized Application Platform (many bitshares futures forked!)

https://rise.vision/ico
https://rise.vision/blog/post/rise-technology-white-paper

1. Introduction

1. What is Rise

We are Rise, a Lisk-based currency and distributed application platform heavily emphasizing security and ease of use. Our aim is to provide Graphical User Interfaces to Decentralized / Distributed application development, Smart Contract creation and sidechain / custom coin creation, all backed by our Distributed Proof of Stake system. Build your own apps and rely on us to provide the security to your blockchain, instead of having to build your own.

2. Technical Background

Rise is being developed using Node.js[1] for the application backend, Go and shell scripts for the server, through Dokku and Docker, and React on the front end.

Node.js was selected because of it's highly efficient concurency model, due to the nature of Javascript's evented model. The database uses MongoDB, and the application talks to the db through the Mongoose ORM, to allow the creation of complex queries, written in Javascript. Support for SQL Queries is on the Roadmap.

Dokku[2] and Docker[3] was selected because of it's functional ability to create entirely separate application environments through the use of LXC[4] containers in Linux. A Dapp written in any language will be sandboxed by the LXC containers, exposed to the World only on port 80 by default, and will connect to the primary Rise Node application on that server through internal networking.

React[5] is a Javascript View (from MVC) library. It utilizes a Virtual DOM with Differential updates to make changes to the page, and controls data flow with one-way reactivity. If the model changes, the view will update to change. It also uses Compoents to template web pages, making complex application UI development streamlined. React's use of a Virtual Dom with Differentials updates allows changes to the UI to be made quickly on a user's click. Instead of having to rerender the entire page, we can rerender just the parts that need updating.

3. Key Innovation Factors

Security is of paramount importance to Rise. Rise will use a holistic approach to ensuring the security of the network, and the blockchain. Consistently running security audits on our infrastructure, hiring a dedicated vulnerability analyst, and working with the Node Security Project to keep up to date with vulnerabilities in NPM packages are just a few of the things Rise will do. A seperate security whitepaper will be released after ICO launch.

All Dapps will be required to use SSL encryption on their public endpoints. This will be automatically provided by an integrated LetsEncrypt package with the Node installation. Every Dapp deployed to a node will automatically have an SSL certificate generated and assigned to it. They will be renewed every 60 days.

Linux Containers allow Rise to support more than just Node as a development platform. Development in any language that can run on Linux, and consume APIs is possible. We will also be fully supporting Javascript, Python, Ruby, C#, and Java as development environments, with special containers designed specifically for those languages to connect them directly to the Rise Node through a secure, internal networking channel.

Websocket based communication between nodes. Websockets is an HTTP technology that enables two systems to communicate in near real time. This will enable some enhancements to the consensus process, potentially speeding up the process to confirm transactions.

Delegate specific node will be a stripped down node designed just for use as a delegate. This, plus the websockets, will allow delegate nodes to be hosted anywhere, even behind firewalls, without difficulty.

GUI Smart Contract and Dapp Builders will enable anyone to build Smart Contract and Dapps, greatly reducing Time to Market, and increasing the number of people who can build apps for the Rise platform.

4. Rise Components
Nodes Developers
Decentralized P2P hosting of dapps Rise / Bitcoin API
Decentralized P2P storage for dapps Rise Javascript SDK
Decentralized computing Rise Python SDK
Secure containers for dapps Rise Ruby SDK
Sidechain consensus for every dapp Rise C# SDK
Easy node Installer Rise Java SDK
Easy delegate Installer Rise UI Framework
GUI Smart Contract Builder
GUI Dapp Builder
Desktop Client
Mobile Client
Web Client

2. Clients

1. Rise Web

The Rise Web client comes will all Rise Nodes. This enables users to manage their account, Dapps, RISE, and Smart Contracts from anywhere with an internet connection. Security is still maintained due to the use of a Single Page Application built in React, encryption happens on the client side and gets transferred over an SSL secured connection.

Running a Web client makes it so you do not have to have the entire blockchain downloaded. Of course, if you want the visibility into the blockchain that having your own copy allows, you can setup a full node on a spare machine, a vm, a VPS, or even a Raspberry Pi.

The web client is also the basis for the Rise Desktop and Mobile applications.

2. Rise Desktop / Mobile

Rise Desktop is built on Electron.js[6], using the React SPA built for Rise Web. This keeps the entire client on your machine, but enables feature parity across clients.

All clients will be capable of spinning up new nodes on various cloud hosting services. If you have an account, you will be able to sign into the hosting service and let the application spin up your Node for you.

Rise Mobile is built on React Native. It will have the same features, with a Mobile focused UI, as the Desktop and Web clients.

The mobile client will be available for both iOS and Android and featured in the Apple and Google Play app stores.

3. Rise Node

The Rise Node is the basis for the entire infrastructure. It will be installable in three ways, through a shell script on a linux system, by downloading and running a packaged VM, and an automated process from the Rise Clients.

The Rise Node contains the Blockchain, Sidechains, Accounts, is a potential Delegate, and contains Rise Web and Rise API endpoints.

4. Rise Delegate Node

The Rise Delegate Node is a NodeJS application designed to run on any system, anywhere, to handle delegate responsibilities only. It contains a basic Web UI that enables setting adjustment. Only a single account can access the node, which is set on first run.

3. Consensus

Rise is based on the DPoS[7] (Delegated Proof of Stake) consensus mechanism. This method of consensus was originally created by the BitShares team.

DPoS is based on delegates creating blocks. Delegates are trusted accounts which are elected to be “Active Delegates”. The 101 delegate accounts with the most votes create the blocks. Other delegates are listed as “Standby Delegates”, and can advance to the top 101 list by receiving votes from the other Rise owners. All users of Rise have 101 votes available to elect their favorite delegates into the top 101 list. The weight of each of the 101 votes is proportional to the amount of Rise the user has in the wallet the votes are cast from. This total amount is shown on the delegate list as an “Approval”, and is listed as a percentage of the 100 million Rise available that is voted for that delegate.

Delegate promotion to the top 101 or demotion to the standby list happens at the completion of the 101 block generation cycle. Each cycle of 101 blocks is created by the top 101 delegates in random order. The block time is 10 seconds. Newly created blocks are broadcast to the network and added to the blockchain. After 6 to 10 confirmations, a block, along with its transactions, can be considered as confirmed. A complete 101 block generation cycle takes approximately 16 minutes.

In DPoS, forks can occur, but the longest fork wins. Delegates must be online all of the time and have sufficient uptime. Uptime is used to catalogue the reliability of a node by logging each time that it misses a block that was assigned to it. Users vote for the top 101 delegates based on several factors, uptime being one key factor used to make a determination. If a delegate drops below a certain rating, users may remove votes from the delegate in question due to poor performance.

1. Delegates

The function of delegates is covered above in the Consensus section.

To be a delegate, a user needs to register a delegate account. This is accomplished from the client user interface in either the full or lite wallet. Keep in mind that block generation is only possible in the full wallet. This means that you can register a delegate in either version of the wallet but will only be able to perform the delegate functions from a full version of the client. The account number and username will be the same after the delegate registration. All Rise accounts are eligible to become delegates.

New delegates start as standby delegates. Standby delegates begin with an approval rating of 0% and will need to accrue votes from the Rise community in order to advance to be one of the top 101 delegates. Block generation is performed by the top 101 delegates only. If you are in standby status, you will not forge any blocks.

2. Network fees

All valid transactions in the network must be processed. Delegates process transactions and store them in new blocks. For this work, the delegates receive a fee. All transactions in the network must contain some type of fee as a spam countermeasure.

The default network fee for sending an Rise transaction is 0.1 Rise. For example, a 100 Rise transaction includes an additional fee of 0.1 Rise for a total transaction cost of 100.1 Rise.

The following is a list of fees for different types of transactions:

0.1 Rise of amount sent for a spend transaction
5 Rise for registering a second passphrase
100 Rise for registering a username
100 Rise for registering as a delegate
1 Rise to add a contact
500 Rise to register a dapp
5 Rise per member for registering a multi-signature group.

Delegates receive the fees from all transactions of the last block cycle (101 blocks). Fees are split equally between all delegates who created a block in that cycle. Delegates who missed creating a block assigned to them during that cycle are not paid.

3. Peer-to-Peer

We are using a standard P2P network[8], which works on top of the http protocol, facilitated by websockets, and uses json formatted data as a method of data inter-change. The P2P module captures the following information about each peer:

Version
OS
IP
Port

4. Core Features

1. Usernames

Rise allows users to register usernames. Which act as an alias to your account. Other users can send transactions to this username and the linked account will then receive it. This eliminates the need to remember long account addresses.

The network fee for username registration is 100 Rise. Usernames may contain the following characters:

Traditional Alphabet (Upper & Lower Case): A-Z, a-z
Numbers: 0-9
Special Characters: !, @, $, &, and .

Each username is unique. The length is currently limited to 16 characters. Currently, it is not possible to remove a username from your account.

2. Contacts

Rise allows users to maintain a contact or friends list. This feature can be used to store frequently used accounts, but can also be used as a reputation system. If an account has many confirmed contacts, it may be considered more reputable than one without.

Contacts work like followers on Twitter. A user is added to the contact list, which will then show as a pending contact request in the user's wallet. Regardless of whether or not the other user accepts the request, they will be shown in the contact list. Once the other user accepts the request, the requester will be added to his contact list as well. Both parties now have a new confirmed contact.

The network fee for adding a new contact or accepting an incoming request is 1 Rise.

3. Multi-signatures

Rise allows users to create a multi-signature group. A multi-signature group consists of several Rise users, called group members. Transactions from multi-signature groups can be configured to require some or all signatories for approval.

To achieve this a M of N multi-signature architecture is implemented. All members of a multi-signature group (N) are added, up to a maximum of 16 signatories, and then the required number (M) of signatures needed to approve a transaction is specified.

M must be greater than 1 and less than or equal than N. N is the number of members of the multi-signature group.

Once you initiate a transaction from the multi-signature group, all members will see this pending transaction and decide whether to approve or ignore it. Once the required number of confirmations has been collected, the group will allow the transaction and submit it to the blockchain.

The owners of a multi-signature group may change the rules of the group at any time with the approval of at least M of the signatories.

4. Smart Contracts

Smart contracts enable a new era of legal and business dealings. Connect your contract to external data sources through REST APIs, and allow them to execute actions automatically when criteria is met. Development of Smart Contracts will be handled through a Graphical User Interface, and will allow for currency transactions, actions via APIs, and more.

5. Decentralized Applications

1. Linux Containers

Rise Dapps are executed using Docker, a Linux Container based system. Containers isolate applications from each other and the underlying operating system, while providing a repeatable build process. Communication between Dapps is done through an internal network. Select the Dapp you want to connect to, and Rise will connect the Dapp to your Dapp internally, and allow you to communicate with the Rise API.

Upon launching a new Dapp, the Rise Node spins up a new container, and runs your Dapp in that container. The container can auto-detect the code you are trying to run, identify the language, and install dependencies.

If you so choose, you can also isolate your Dapp from all others, so that communication is restricted.

2. Dapps

A dapp is a decentralized application[9] that Utilizes the Rise SDK and runs in a container on a Rise Node. It works with the Rise Node using the Rise consensus algorithm. With current web technologies (HTML5/CSS3/JavaScript) the developer is able to create a powerful UI. Dapps can use any technology that runs on Linux in their development of the server side of the application.

Regular users can launch the dapps on any Rise Client.

3. Dapp Development

Developers write dapps in whatever language they want, using language specific SDKs, whichever UI framework they want (including Rise UI), or using Rise API endpoints.

Each Dapp runs in it's own container on a Rise Node, which reduces much of the potential attack surface for malicious actors. Each Dapp Container is connected internally to the Rise API endpoint, so API calls to Rise are all done internally to the Rise Node, instead of using the public Internet to send API requests.

The API includes a request/reponse mode, and a streaming mode, enabling realtime updates to Dapps from the Rise Node, and the Rise Node from the Dapps.

To open a dapp, the format: https://dapp..rise.vision/<dapp_id/username> is used.

4. Dapp Computation

Built into the Dapp Store is a resource billing system. This will allow billing for system resources on the Rise Node, to host Dapps. Resources that can be billed for are CPU, RAM, Storage, and Network I/O. What is billed for, and how much, is up to the Node Owner.

Any Dapp registered on the Rise network will be available for Node Owners to use on their own Nodes.

Invoicing will be done in Rise, and automation will be available. If invoices aren't paid, automatic shut-downs, and deletion is possible. This is all customizable by the Node owner.

5. Dapp Consensus

Each Dapp has its own unique private side chain which operates in synchronization with the Rise block time and current block height.

Dapp sidechains are managed by a group of up to 101 master nodes, each of which have block generation enabled specifically for an individual dapp. The primary role of each master node is to process transactions and signify the validity of each block generated on the sidechain.

The signing of blocks by a master node against a given dapp is restricted by the dapp owners. Whom then approve individual Rise accounts as master nodes, which then are allowed to forge on the Dapp’s side chain.

Sidechain consensus is maintained among the 101 master nodes using the same Delegated Proof-of-Stake (DPOS) method used to secure the Rise blockchain. This allows individual master nodes to collect fees from each transaction as reward for securing the dapp's side chain.

The motivations behind this form of consensus are to prevent unnecessary enlargement of the Rise blockchain and to retain individual sidechain autonomy, while at the same time, ensuring the integrity of each side chain is constantly upheld.

6. Dapp Master Nodes*

Dapp master nodes are Rise nodes with an installed dapp and with block generation enabled specifically for that dapp. Dapp owners need to approve individual Rise accounts to be permitted to be a master node. The nodes process transactions and generate new blocks which are then secured by the Rise Blockchain, making them the core of the dapp system.

7. Dapp Storage

Dapp storage is handled by git repositories. When a Dapp is registered with the main network, it's master branch on the git repository is used whenever the Dapp is installed. Web hooks are available to push changes to all Rise Nodes that have the Dapps installed.

File Storage can be handled with local storage on in the container utilizing docker volumes, or can use file storage systems on the web served by cloud providers.

8. Dapp Deposits / Withdrawals

Developers can use either Rise or BTC in their dapps[10]. Users of a dapp may deposit or withdraw funds from any given dapp. When Rise or BTC are sent to a dapp address, the funds appear in the dapp account. The funds will then become available for use within the dapp. This works the same way for BTC deposits as it does with Rise. BTC is sent to a special dapp address and then appears in the dapp Bitcoin wallet.

Dapp accounts are a special type of account created by the network automatically for a dapp. All deposited Rise or BTC will be stored in the associated addresses. For security reasons, only the use of multi-signature dapp accounts with trusted signers is allowed.

Withdrawals from dapps are processed by master nodes. When a withdrawal request is sent, the dapp master node processes it and moves the funds to the specified withdrawal address in the Rise or Bitcoin blockchain.

9. Dapps Tokens

Developers may implement custom tokens in their dapps, and use these tokens as the main currencies within their dapps. These tokens may be used in the same way as Rise or BTC, but the tokens cannot be moved directly from one dapp sidechain to another dapp sidechain. They must only move via the Rise main chain.

6. Appendix

Written by

Justin R. Donnaruma

Releases

May 7th, 2016 (v1.0)

7. Sources

[1] Node.js Organization https://nodejs.org
[2] Dokku http://dokku.viewdocs.io/dokku
[3] Docker https://www.docker.com/
[4] LXC https://linuxcontainers.org/
[5] React https://facebook.github.io/react/
[6] Electron https://github.com/atom/electron
[7]. Bitshares DPoS. http://wiki.bitshares.org/index.php/BitShares
[8] Peer-to-Peer https://en.wikipedia.org/wiki/Peer-to-peer
[9] David Johnston. Decentralized Applications. https://github.com/DavidJohnstonCEO/DecentralizedApplications/blob/master/README.md
[10] Sidechains. Deposit/withdrawal sidechain. https://www.blockstream.com/sidechains.pdf

Based on the Lisk Whitepaper v2.1

https://lisk.io/documentation?i=lisk-whitepaper/LiskWhitepaper
https://rise.vision/ico

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  
  ·  9 years ago (edited)

So basically a cloud hosting provider where the provider is restricted to one of a pre-selected group of voted delegates?

What is with these new dynamic smart contract blockchain projects that don't seem to get the main idea behind a blockchain and decentralized consensus? [1] [2]

But who cares about that. Ethereum (which is the only one of these type of projects [3] that I've seen so far that actually does understand it) has opened the flood gates. All aboard the Dapp hype train!

[1]
For more detail, I refer you to this: https://steemit.com/lisk/@dan/why-lisk-is-inferior-to-ethereum
Although there are more issues to discuss. Like the fact that a single node is the sole decider of the truth of database state for the Dapp they run, from the perspective of all other Dapps communicating with it. (I assume anyway, based on my understanding of the limitations of their design. The whitepaper is short on critical details.)

[2]
I am being rhetorical. I'll tell you exactly why. Doing it the right way is hard. I've thought about it a lot. If you want to do the minimal dev effort needed to get something you can call a dynamic smart contract platform and do an ICO for, you build something like Lisk or Rise. If you want to do it right, you need to enforce determinism, have automatic rollback of state on failure or resource exhaustion, have actual decentralized consensus while making sure that the arbitrary computation hasn't broken synchronization among all the nodes, deterministically measure resource consumption to reach consensus on fees and whether or not a transaction failed due to resource exhaustion (which as far as I am aware requires you to make a VM specifically designed for this purpose if you want your smart contracts to be written with a Turing-complete language), and many more details. In other words, it's time-intensive and expensive development work to do it right. Not surprising so many people want to take a shortcut.

[3]
I am excluding Graphene-based blockchain projects (e.g. BitShares, Steem), because I don't consider them dynamic smart contract platforms. If a user cannot pay a fair price to force the network to dynamically run newly written code without anyone's permission, it doesn't belong in that class IMO, even if it the platform is designed well to quickly code new smart contract features and deploy them with a hard fork.

This bot detected images from a legacy source and decided autonomously
to upload them to the InterPlanetary FileSystem (IPFS)! The upload was
successfull and the pictures can be found here:

orig: https://rise.vision/images/logo-white.png
desc: 
hash: QmeKkkUKwMee1KhxHHRB8ZcxSh8Xq4RMmaSdAvMjYh9HdF/logo-white.png
  ·  9 years ago (edited)Reveal Comment

I think they're just not being parsed and will be fixed soon™.