Giter Site home page Giter Site logo

lord2anil / floresta Goto Github PK

View Code? Open in Web Editor NEW

This project forked from davidson-souza/floresta

0.0 0.0 0.0 1.66 MB

A fully-validating Bitcoin node powered by Utreexo, with an integrated Electrum Server

License: MIT License

Shell 0.14% Python 8.85% Rust 90.76% Dockerfile 0.09% Just 0.16%

floresta's Introduction

Floresta

Welcome to Floresta, a lightweight Bitcoin full node implementation written in Rust, powered by Utreexo a novel dynamic accumulator designed for the Bitcoin UTXO set.

This project is composed of two parts, libfloresta and florestad. libfloresta is a set of reusable components that can be used to build Bitcoin applications. florestad is built on top of libfloresta to provide a full node implementation, including a watch-only wallet and an Electrum server. If you just want to run a full node, you can use florestad directly, either by building it from source or by downloading a pre-built binary from the releases.

If you want to use libfloresta to build your own Bitcoin application, you can find the documentation here.

Comunity

If you want to discuss this project, you can join our Discord server here.

Building

You'll need Rust and Cargo, refer to this for more details. Minimum support version is rustc 1.64 and newer.

Once you have Cargo, clone the repository with:

git clone https://github.com/Davidson-Souza/Floresta.git

go to the Floresta directory

cd Floresta/

and build with cargo build

cargo build --release --bin florestad
# Optionally, you can install it with
cargo install --path .

Running

Right now, this project is working on signet only. Mainnet support is still a todo thing. You can get some signet coins here and just play around with it. Copy config.toml.sample to config.toml, and fill up your xpubs and addresses that you intend to track, and then run with

florestad -c config.toml --network signet run

or

./target/release/florestad -c config.toml --network signet run

or

cargo run --release -- -c config.toml --network signet run

Running the tests

There's a set of unit tests that you can run with

cargo test

Contributing

Contributions are welcome, feel free to open an issue or a pull request. There's not really a set of guidelines for contributing other than the code compiling and the tests passing. If you want to contribute but don't know where to start, take a look at the issues, there's a few of them marked as good first issue.

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

Consensus implementation

One of the most challenging parts of working with Bitcoin is keeping up with the consensus rules. Given it's nature as a consensus protocol, it's very important to make sure that the implementation is correct. Instead of reimplementing a Script interpreter, we use rust-bitcoinconsensus to verify transactions. This is a bind around a shared library that is part of Bitcoin Core. This way, we can be sure that the consensus rules are the same as Bitcoin Core, at least for scripts.

Although tx validation is arguably the hardest part in this process. This integration can be further improved by using libbitcoinkernel, that will increase the scope of libbitcoinconsensus to outside scripts, but this is still a work in progress.

floresta's People

Contributors

davidson-souza avatar a-moreira avatar josesk999 avatar jaonoctus avatar kcalvinalvin avatar douglaz avatar bitkarrot avatar guilospanck avatar vikaass-08 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.