This is a practice implementation of the BOLT-4 Onion Routing Protocol from the Lightning Network, written in Rust. It’s intended for educational purposes and experimentation, not production use.
- Parses onion routing data as per BOLT-4
- Extracts and writes onion hex packets to a file
Build and run with:
cargo run --release -- "$output_directory" "$input_file"This reads the input file, parses the onion packet, and writes the hex output to output.txt in the specified directory.
This project is for practice and learning only.
See BOLT-4 spec for protocol details.