Crates.io | blueprint-networking |
lib.rs | blueprint-networking |
version | 0.1.0-alpha.14 |
created_at | 2025-04-09 14:26:40.367794+00 |
updated_at | 2025-08-11 20:16:10.768735+00 |
description | Networking utilities for Tangle Blueprints |
homepage | https://tangle.tools |
repository | https://github.com/tangle-network/blueprint |
max_upload_size | |
id | 1626873 |
size | 527,928 |
This document explains how nodes in our network talk to each other securely.
Before two nodes can exchange messages, they must verify each other's identity. This happens in a process called "handshaking".
sequenceDiagram
participant A as Node A
participant B as Node B
Note over A,B: Step 1: Initial Connection
A->>B: Hi! Here's my ID and signature
Note right of B: Step 2: B checks A's identity
B->>A: Hi back! Here's my ID and signature
Note left of A: Step 3: A checks B's identity
Note over A,B: Step 4: Both nodes are now friends!
Initial Connection
Identity Verification
The Handshake Steps
Success!
After the handshake, nodes can send two types of messages:
sequenceDiagram
participant A as Node A
participant B as Node B
A->>B: Direct message to B
B->>A: Got it! Here's my response
sequenceDiagram
participant A as Node A
participant B as Node B
participant C as Node C
participant D as Node D
A->>B: Broadcast message
A->>C: Broadcast message
A->>D: Broadcast message
We keep everything secure by:
Things don't always go perfectly! We handle problems like:
Each error gets a specific response so nodes know what went wrong.