# Cryptography & Secure Handshake

**Information**

* Node Identity: Ed25519 keypair per node (published on-chain). Ephemeral X25519 keys per session for forward secrecy.
* Hashing: BLAKE3 for local metering; SHA-256 for cross-chain compatibility.
* AEAD: AES-GCM or ChaCha20-Poly1305 for authenticated encryption.
* KDF: HKDF-SHA256 to derive session keys.
* MAC: HMAC-SHA256 for off-path telemetry integrity.

**Handshake Process**

* Discovery via Intelligent DNS with node IDs.
* QUIC/TLS 1.3 establishes encrypted streams.
* Application Identity Bind with signed Ed25519 proofs.
* Ephemeral X25519 exchange with HKDF derivation.
* Optional double-encryption via overlay AEAD.

**Data Transmission Privacy**

* Default: QUIC/TLS 1.3 AEAD per hop.
* Optional: End-to-end AEAD overlay so intermediate lightnodes only relay ciphertext.
* Zero-copy Rust pipeline preserves encryption until final processing point.<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.u2dpn.xyz/decentralize-data-transmission-network/cryptography-and-secure-handshake.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
