Git Product home page Git Product logo

btc-node-handshake's Introduction

Basic Bitcoin Core Node handshake library

This library contains basic types and serialization/deserialization functionality to be able to do a handshake with a Bitcoin Core Node. Right now can only be used to get basic information from the node, like the user agent name.

Testing

To test the library, know an address of a Bitcoin Core Node or have a instance running on your system. Here are some basic instructions to test this library locally:

  1. Download and install the Bitcoin Core Node on your system;
  2. Configure and launch the local Bitcoin Core Node;
  3. Clone this project to a directory on your system by using the following command: git clone https://github.com/T-Hacker/p2p-handshake.git
  4. Change directory to the project: cd p2p-handshake
  5. Test the library by doing:
    • Linux: BTC_NODE_ADDRESS=127.0.0.1:8333 cargo test handshake -- --nocapture
    • Windows (PS): $env:BTC_NODE_ADDRESS="127.0.0.1:8333"; cargo test handshake -- --nocapture
    • Windows (CMD): set BTC_NODE_ADDRESS=127.0.0.1:8333 && cargo test handshake -- --nocapture
  6. If everything is working correctly, you should see in the terminal a message displaying the name of the user agent that is running on your system.

NOTE: This guide assumes that you have Git and Cargo already installed on your system.

btc-node-handshake's People

Contributors

t-hacker avatar

Watchers

 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.