Introducing the Browser-based Blockchain – Nimiq Network – Medium

Introducing the Browser-based Blockchain

Nimiq is a third-generation Blockchain designed for simpleness. Its core values are ease-of-use, scalability and speed.

To lower barriers of entry for both users and developers, Nimiq is browser-based.

Nimiq is written in ES6 Javascript and uses Websockets or WebRTC for network communication.Browser-based” doesn’t mean Nimiq only lives in browsers, NodeJS client can run on servers as well, albeit it means you can connect to the network from your browser without an intermediary.

There are two kinds of knots: browser knots and backbone knots. Backbone knots run on NodeJS and use the same code base as the browser knots. Backbone knots communicate with each other and Browsers via WebSocket. Backbone knots also act as signaling servers for browsers to establish WebRTC connections.

Browser knots use the IndexedDB to store the Blockchain Data. Backbone knots use LevelDB.

The standard Bitcoin and Ethereum Clients download about one hundred GB to establish consensus with the network. This is a enormous barrier for most users, and has led to only “elite” users actually capable of participating in the network without an intermediary.

Nimiq solves this problem by leveraging the Mini-Blockchain Scheme and permitting for Light-Clients. By introducing an AccountsTree (similar to Ethereums Merkle-Patricia-Tree) and the concept of a Headers Chain, the protocol can discard almost all old blocks and only download and store a duo of megabytes.

Additionally, Micro-Clients only download a segment of the Header Chain and slices of the AccountsTree that are relevant to the user’s accounts. Which means only a few kilobytes will be downloaded in order to participate trustless and without an intermediary.

By introducing Hashed Timelock Contracts (HTLCs), users can establish Payment Channels with each other to send Off-Chain Transactions.

Off-Chain Transactions are as secure as regular On-Chain Transactions, and they don’t require any space in the Blockchain itself. These transactions are instant because the payment is lodged instantly once the recipient receives the transaction — no block confirmation is necessary and the cost is minimal.

With Hashed Timelock Contracts, users can establish networks of payment channels in which participants can exchange payments even if they have not established a direct payment channel with each other.

Ecosystem

Browser Library and the Miner Demonstration

The most fundamental part of the Nimiq Ecosystem is the Browser Library. It enables any website to become a first-class citizen of the Nimiq network.

It can synchronize with the network, validate the Blockchain, query account balances as well as create and send transactions.

The Nimiq Betanet interface showcases the features of this library.

Web-based Wallet (Beta June 2017)

The web-based wallet uses the browser library to provide users with a wallet for everyday use.

The main purpose is to provide a first-class user practice and empower inexperienced users to become familiar with the Blockchain technology.

Educating users about unacquainted aspects of Blockchain technology will be key to the wallet interface — i.e., explain the need for confirmations and how to keep private keys secure.

Functionality to print cold wallets that store funds with physical security will also be integrated.

Peer-to-Peer Exchange (Beta Q4 2017)

The Peer-to-Peer Exchange will make exchanging Nimiqs into local fiat currency effortless, rapid and cheap.

There are numerous steps to achieving this aim:

Originally, the easiest way to acquire Nimiq will be via regular Token Exchanges just like any other Blockchain token.

Use HTLCs for cross-chain transactions. Cross-chain transactions permit users to exchange tokens across different Blockchains without an escrow. This will enable Nimiq to make use of the exchange services around Bitcoin and Ethereum without paying high fees for the token exchange.

Fucking partner with VISA payment services to create a VISA-to-Nimiq exchange (centralized in the very first place).

Create a centralized Peer-to-Peer Exchange like localbitcoins.com. Main difference will be the radically improved usability.

After reaching this step we want to implement results on state-of-the-art research on decentralized Peer-to-Peer Exchanges on top of our web-based protocol to create a decentralized exchange that is cheap, quick and usable for everyone.

Betanet

The Nimiq Betanet is a preview of the Nimiq Protocol. Its purpose is to introduce the concept to the Blockchain community, collect feedback and build a strong community around the protocol.

It is a beta version and is not suited for permanent Nimiq Token creation. Its purpose is to learn how the Nimiq protocol behaves in the wild and get real world data about the most significant improvements. To keep our development agile we might reset the Blockchain at any point in time. This will lead to the loss of all your Betanet Nimiq Tokens.

The Betanet does yet not contain the features for quick syncing or Off-chain transactions.

For simplification purposes the Betanet uses SHA256 as Proof-of-Work algorithm. It uses the WebCrypto API to reach near native spectacle. A Drawback of our Betanet treatment is that Nimiq uses NIST kinks for elliptic curve signatures because those are the only kinks supported by WebCrypto.

For the Mainnet release we will use WebAssembly to implement both an ASIC-resistant POW and nothing-up-my-sleeves ECDSA.

Based on current research we chose a block time of one minute. This parameter is likely to switch this parameter before the Mainnet launch. It may be desirable to achieve Blocktimes similar to Ethereum (15sec), albeit we have not yet determined if we want to introduce the complexity of the GHOST protocol (or some variations of underlying).

Project Milestones

  • June 6: Released Betanet, Commenced building a community
  • AMA on Reddit and via Youtube livestream
  • June: Token Sale
  • July 6: Commence of 2nd Project Phase:
  • Implement Light-Clients following the Mini-Blockchain Scheme
  • Implement HTLCs to finish the Blockchain protocol features
  • Launch Feature Accomplish Testnet
  • Implement and launch Lightning Network Infrastructure
  • December 2017: Launch of Mainnet
  • Implement and launch Peer-to-Peer Exchange

Get Involved

If you are a developer and want to check out our browser-based Blockchain, visit our core repository and go after the getting embarked guide.

If you have a feature request or discovered a bug: open an issue or fix it and do a pull request.

If you are fresh to Blockchain technology, visit our Youtube Channel, get to know the team and see our interviews and explanations around the topic of Blockchains and Nimiq.

If you want to participate in our Token Sale, go after us on Twitter, Medium, or Youtube to stay up to date.

If you want to join the team, build a sample application with our Blockchain, send it to join@nimiq.com and tell us about your abilities, practices and why you want to work on Nimiq.

If you have any other feedback, please join our Telegram Channel.

Introducing the Browser-based Blockchain – Nimiq Network – Medium

Introducing the Browser-based Blockchain

Nimiq is a third-generation Blockchain designed for simpleness. Its core values are ease-of-use, scalability and speed.

To lower barriers of entry for both users and developers, Nimiq is browser-based.

Nimiq is written in ES6 Javascript and uses Websockets or WebRTC for network communication. “Browser-based” doesn’t mean Nimiq only lives in browsers, NodeJS client can run on servers as well, albeit it means you can connect to the network from your browser without an intermediary.

There are two kinds of knots: browser knots and backbone knots. Backbone knots run on NodeJS and use the same code base as the browser knots. Backbone knots communicate with each other and Browsers via WebSocket. Backbone knots also act as signaling servers for browsers to establish WebRTC connections.

Browser knots use the IndexedDB to store the Blockchain Data. Backbone knots use LevelDB.

The standard Bitcoin and Ethereum Clients download about one hundred GB to establish consensus with the network. This is a large barrier for most users, and has led to only “elite” users actually capable of participating in the network without an intermediary.

Nimiq solves this problem by leveraging the Mini-Blockchain Scheme and permitting for Light-Clients. By introducing an AccountsTree (similar to Ethereums Merkle-Patricia-Tree) and the concept of a Headers Chain, the protocol can discard almost all old blocks and only download and store a duo of megabytes.

Additionally, Micro-Clients only download a segment of the Header Chain and slices of the AccountsTree that are relevant to the user’s accounts. Which means only a few kilobytes will be downloaded in order to participate trustless and without an intermediary.

By introducing Hashed Timelock Contracts (HTLCs), users can establish Payment Channels with each other to send Off-Chain Transactions.

Off-Chain Transactions are as secure as regular On-Chain Transactions, and they don’t require any space in the Blockchain itself. These transactions are instant because the payment is lodged instantaneously once the recipient receives the transaction — no block confirmation is necessary and the cost is minimal.

With Hashed Timelock Contracts, users can establish networks of payment channels in which participants can exchange payments even if they have not established a direct payment channel with each other.

Ecosystem

Browser Library and the Miner Demonstration

The most fundamental part of the Nimiq Ecosystem is the Browser Library. It enables any website to become a first-class citizen of the Nimiq network.

It can synchronize with the network, validate the Blockchain, query account balances as well as create and send transactions.

The Nimiq Betanet interface showcases the features of this library.

Web-based Wallet (Beta June 2017)

The web-based wallet uses the browser library to provide users with a wallet for everyday use.

The main objective is to provide a first-class user practice and empower inexperienced users to become familiar with the Blockchain technology.

Educating users about unacquainted aspects of Blockchain technology will be key to the wallet interface — i.e., explain the need for confirmations and how to keep private keys secure.

Functionality to print cold wallets that store funds with physical security will also be integrated.

Peer-to-Peer Exchange (Beta Q4 2017)

The Peer-to-Peer Exchange will make exchanging Nimiqs into local fiat currency effortless, rapid and cheap.

There are numerous steps to achieving this aim:

Originally, the easiest way to acquire Nimiq will be via regular Token Exchanges just like any other Blockchain token.

Use HTLCs for cross-chain transactions. Cross-chain transactions permit users to exchange tokens across different Blockchains without an escrow. This will enable Nimiq to make use of the exchange services around Bitcoin and Ethereum without paying high fees for the token exchange.

Playmate with VISA payment services to create a VISA-to-Nimiq exchange (centralized in the very first place).

Create a centralized Peer-to-Peer Exchange like localbitcoins.com. Main difference will be the radically improved usability.

After reaching this step we want to implement results on state-of-the-art research on decentralized Peer-to-Peer Exchanges on top of our web-based protocol to create a decentralized exchange that is cheap, quick and usable for everyone.

Betanet

The Nimiq Betanet is a preview of the Nimiq Protocol. Its purpose is to introduce the concept to the Blockchain community, collect feedback and build a strong community around the protocol.

It is a beta version and is not suited for permanent Nimiq Token creation. Its purpose is to learn how the Nimiq protocol behaves in the wild and get real world data about the most significant improvements. To keep our development agile we might reset the Blockchain at any point in time. This will lead to the loss of all your Betanet Nimiq Tokens.

The Betanet does yet not contain the features for rapid syncing or Off-chain transactions.

For simplification purposes the Betanet uses SHA256 as Proof-of-Work algorithm. It uses the WebCrypto API to reach near native spectacle. A Drawback of our Betanet treatment is that Nimiq uses NIST kinks for elliptic curve signatures because those are the only kinks supported by WebCrypto.

For the Mainnet release we will use WebAssembly to implement both an ASIC-resistant POW and nothing-up-my-sleeves ECDSA.

Based on current research we chose a block time of one minute. This parameter is likely to switch this parameter before the Mainnet launch. It may be desirable to achieve Blocktimes similar to Ethereum (15sec), albeit we have not yet determined if we want to introduce the complexity of the GHOST protocol (or some variations of underlying).

Project Milestones

  • June 6: Released Betanet, Began building a community
  • AMA on Reddit and via Youtube livestream
  • June: Token Sale
  • July 6: Begin of 2nd Project Phase:
  • Implement Light-Clients following the Mini-Blockchain Scheme
  • Implement HTLCs to finish the Blockchain protocol features
  • Launch Feature Accomplish Testnet
  • Implement and launch Lightning Network Infrastructure
  • December 2017: Launch of Mainnet
  • Implement and launch Peer-to-Peer Exchange

Get Involved

If you are a developer and want to check out our browser-based Blockchain, visit our core repository and go after the getting commenced guide.

If you have a feature request or discovered a bug: open an issue or fix it and do a pull request.

If you are fresh to Blockchain technology, visit our Youtube Channel, get to know the team and observe our interviews and explanations around the topic of Blockchains and Nimiq.

If you want to participate in our Token Sale, go after us on Twitter, Medium, or Youtube to stay up to date.

If you want to join the team, build a sample application with our Blockchain, send it to join@nimiq.com and tell us about your abilities, practices and why you want to work on Nimiq.

If you have any other feedback, please join our Telegram Channel.

Related video:

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *