16-byte destination hashes
16-byte destination hashes
Every destination is a 16-byte (128-bit) hash shown as 32 hex characters. It comes from truncating a SHA-256 hash of identifying aspects. This size balances address space against packet overhead on low-bandwidth links.
- Displayed like <13425ec15b621c1d928589718000d814>
- Aspect names can be long. The network only carries the hash
- TRUNCATED_HASHLENGTH is 128 bits in the Go cryptography reference
Single
Multi-hopUnique public key, encrypted
Plain
Local, unencrypted
Group
Symmetric key, local today
Link
Multi-hopChannel with reliability and forward secrecy
Create a SINGLE destination and print its hash
import RNS
APP_NAME = "example_utilities"
reticulum = RNS.Reticulum(configpath)
identity = RNS.Identity()
destination = RNS.Destination(
identity,
RNS.Destination.IN,
RNS.Destination.SINGLE,
APP_NAME,
"minimalsample",
)
destination.set_proof_strategy(RNS.Destination.PROVE_ALL)
destination.announce()
print(RNS.prettyhexrep(destination.hash))
Step 1 of 4
Swipe or use arrow keys