GithubHelp home page GithubHelp logo

cyberflamego / core-rs-albatross Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nimiq/core-rs-albatross

0.0 2.0 0.0 12.08 MB

Rust implementation of the Albatross protocol

Home Page: https://nimiq.com

License: Other

Dockerfile 0.17% Rust 98.27% Shell 0.51% Python 1.06%

core-rs-albatross's Introduction

Nimiq 2.0 implementation in Rust

nimiq

Rust implementation of the Nimiq 2.0 blockchain node

Build Status dependency status

Nimiq is a frictionless payment protocol for the web.

This repository is currently under development. It contains the implementation of the Nimiq 2.0 protocol: a Proof-of-stake blockchain based on the Albatross consensus algorithm.

Nimiq 2.0 was conceived with performance in mind without sacrificing security.

Currently, the protocol can be exercised in an environment aimed for developers where bugs are expected to happen. For more detailed information about how to connect and use the development network, please refer to the Devnet section.

Table of Contents

Background

System requirements

  • 64-bit computing architecture.
  • File systems with sparse file support.

Installation

Besides Rust nightly itself, the following packages are required to be able to compile the source code:

  • gcc
  • pkg-config
  • libssl-dev (in Debian/Ubuntu) or openssl-devel (in Fedora/Red Hat)

After installing the previous packages, compiling the project is achieved through cargo:

git clone https://github.com/nimiq/core-rs-albatross
cd core-rs
cargo +nightly build

Note that this will build in debug mode, which is not as performant. To get the most speed out of the client, please build in release mode:

cargo +nightly build --release

If you want to install the client onto your system (into $HOME/.cargo/bin), run:

cargo +nightly install --path client/

Alternatively, you can install it directly from git:

cargo +nightly install --git https://github.com/nimiq/core-rs-albatross.git

Usage

After installation, you can run the client directly, like this:

nimiq-client

Configuration

By default the client will look for a configuration file in $HOME/.nimiq/client.toml. In order to create this file yourself, you can use the example config file as follow:

nimiq-client                                                   # Run the client. This will create the example config file.
cp $HOME/.nimiq/client.example.toml $HOME/.nimiq/client.toml   # Create your config from the example.
nano $HOME/.nimiq/client.toml                                  # Edit the config. Explanations are included in the file.

If you want to direcly specify your own configuration file when running the client, you can do so as follow:

nimiq-client -c path/to/client.toml

Please take a look at the client.example.toml for all the configuration options.

Devnet

The development network is currently in release-candidate phase rc2. Its main purpose is to invite all developers to exercise and test the Nimiq 2.0 client, filing and reporting any issues through our GitHub repository.

Clients can connect to the Devnet via the seed node located at

/dns4/seed1.v2.nimiq-testnet.com/tcp/8443/ws

And get funds to experiment with it (for example, by becoming a validator) using the Devnet Faucet:

curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d "address=NQXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX"  http://faucet.v2.nimiq-testnet.com/tapit

For a full list of supported and non-supported functionality, please refer to the Nimiq 2.0 Devnet project.

Contributing

If you'd like to contribute to the development of Nimiq please follow our Code of Conduct and Contributing Guidelines.

Small note: When editing the README, please conform to the standard-readme specification.

License

This project is licensed under the Apache License 2.0.

core-rs-albatross's People

Contributors

brunoffranca avatar curdbecker avatar dependabot[bot] avatar fiaxh avatar frvfrvr avatar jeffesquivels avatar jgraef avatar josefschabasser avatar jsdanielh avatar maestroi avatar mar-v-in avatar nibhar avatar paberr avatar redmaner avatar riptl avatar sdschmidt avatar sisou avatar styppo avatar syvb avatar viquezclaudio avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.