https://github.com/palutz/btc-handshake
Simple test to handshake a Bitcoin node
https://github.com/palutz/btc-handshake
bitcoin handshake p2p rust rust-lang
Last synced: 22 days ago
JSON representation
Simple test to handshake a Bitcoin node
- Host: GitHub
- URL: https://github.com/palutz/btc-handshake
- Owner: palutz
- Created: 2023-10-31T13:33:05.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-31T20:49:13.000Z (about 2 years ago)
- Last Synced: 2025-07-21T04:27:17.173Z (3 months ago)
- Topics: bitcoin, handshake, p2p, rust, rust-lang
- Language: Rust
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# btc-handshake
![Rust Version][rustc-image]
[![crates.io][crate-image]][crate-link]
[![Documentation][docs-image]][docs-link]
[![Dependency Status][deps-image]][deps-link]
## How to run it
Download the Bitcoin core implementation (source or binary) and then run:
```
$ bitcoind -regtest -daemon
```
From the root folder of the project, run:
```
make run
```
and the program will make an handshake with the Bitcion Core node.
## Design
The program is hugely simplified.
For this test I decided to:
- reduce the dependencies to external libraries
- deal only with IPv4 addresses
- deal only with local nodes (hardcoded localhost address)
- Simplified management of the messages
- almost no error management
[//]: # (badges)
[rustc-image]: https://img.shields.io/badge/rustc-1.60+-blue.svg
[crate-image]: https://img.shields.io/crates/v/{{project-name}}.svg
[crate-link]: https://crates.io/crates/{{project-name}}
[docs-image]: https://docs.rs/{{project-name}}/badge.svg
[docs-link]: https://docs.rs/{{project-name}}
[deps-image]: https://deps.rs/repo/github/palutz/lisp_interpreter_rs/status.svg
[deps-link]: https://deps.rs/repo/github/palutz/lisp_interpreter_rs