#nimiq #blockchain #cryptocurrency

nimiq-accounts

Persistent accounts storage for Nimiq's Rust implementation

3 releases (breaking)

0.2.0 Nov 8, 2019
0.1.0 May 24, 2019
0.0.0 Feb 4, 2019

#20 in #nimiq

Download history 13/week @ 2024-08-26 2/week @ 2024-09-02 15/week @ 2024-09-09 13/week @ 2024-09-16 28/week @ 2024-09-23 10/week @ 2024-09-30 6/week @ 2024-10-14 11/week @ 2024-10-21 6/week @ 2024-10-28 20/week @ 2024-11-04 12/week @ 2024-11-18 16/week @ 2024-11-25 23/week @ 2024-12-02 35/week @ 2024-12-09

86 downloads per month
Used in 9 crates (2 directly)

Apache-2.0

485KB
8K SLoC

Nimiq Core implementation in Rust (core-rs)

nimiq

Rust implementation of the Nimiq Blockchain Core

Nimiq is a frictionless payment protocol for the web.

This repository is archived. You can use the JavaScript implementation instead. Or if you are looking for the Albatross Rust implementation, check the corresponding repository.

The Nimiq Rust client comes without wallet and can currently not be used to send transactions. As a back-bone node it is more performant than the JavaScript implementation though.

Table of Contents

Background

Install

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

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

From crates.io

To download from crates.io, compile and install the client:

cargo +nightly install nimiq-client

The binary will be installed in your Cargo directory, which is usually at $HOME/.cargo/bin, and should be available in your $PATH.

From Git

Compiling the project is achieved through cargo:

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

Note that this will build it in debug mode, which is not as performant. To get the most speed out of the client, build it 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 directly from git:

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

After installing the client you can use it as if you had downloaded it from crates.io.

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.config. You need to create this file yourself:

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.

You can also specify your own configuration file:

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

Take a look at client/client.example.toml for all the configuration options.

Contributing

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

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

License

This project is under the Apache License 2.0.

Dependencies

~11MB
~222K SLoC