Codebase audit

Verifiable facts from the source code.

Every figure below was inspected directly in MNDO's Dart repository—dictionary counts, BIP-39 key derivation, Signal envelopes, voice encryption, and SQLCipher settings.

Handle space
14.9T
Root entropy
2¹²⁸ states
Cipher strength
256-bit AES
Central servers
0
01

14,898,167,808,000

The full username space is ~14.9 trillion combinations

Every initial username is formatted as [Adjective] [Noun] #[Hex6]. Combining 888 unique adjectives, 1,000 unique nouns, and 16,777,216 hex suffixes produces nearly fifteen trillion human-readable handles.

888 adjectives × 1,000 nouns × 16⁶ hex suffixes = 14,898,167,808,000 combinations

02

~127× scale

~127× larger than all humans who have ever lived

The Population Reference Bureau estimates roughly 117 billion humans have ever been born on Earth. MNDO's username namespace of 14.9 trillion is approximately 127 times larger than that total.

14.898 trillion ÷ 117 billion ≈ 127.3× all humans in history

03

1,817 : 1

~1,800 combinations for every person alive today

Against the global population of roughly 8.2 billion people, MNDO can provide over eighteen hundred unique, human-readable username combinations per living human without exhausting its namespace.

14,898,167,808,000 ÷ 8.2 billion ≈ 1,817 usernames / person

04

888,000 pairs

888 unique adjectives × 1,000 unique nouns

Code inspection confirms the dictionary contains exactly 888 unique adjectives and 1,000 unique nouns. This yields 888,000 distinct word pairs before the 6-character hex suffix is appended.

888 adjectives × 1,000 nouns = 888,000 base phrases

05

16⁶ (24 bits)

16.7 million hexadecimal suffix possibilities

Each username appends a 6-character hexadecimal discriminator (#abcdef). With 16 possibilities per hex character (0–9, a–f), the suffix alone provides over 16.7 million unique tags per word pair.

16⁶ = (2⁴)⁶ = 2²⁴ = 16,777,216 distinct suffixes

06

7 bytes

Username uses only the first 7 bytes (56 bits) of SHA-256

MNDO hashes the Ed25519 public key with SHA-256, taking the first 7 bytes: bytes 0–1 index the adjective, bytes 2–3 index the noun, and bytes 4–6 form the hex suffix.

Bytes 0–1 (Adjective) + Bytes 2–3 (Noun) + Bytes 4–6 (Hex Suffix) = 7 bytes (56 bits)

07

43.76 bits

Username carries ~43.8 bits of effective namespace

Because dictionary indexing compresses the 56-bit hash slice, the visible username represents log₂(14,898,167,808,000) ≈ 43.76 bits of distinguishability. The username is a friendly display handle; the 32-byte Ed25519 public key is the true cryptographic identity.

log₂(14.898 × 10¹²) = 43.76 bits of entropy

08

~4.5M identities

Birthday paradox: 50% collision probability around ~4.5M users

With no central registration server, username collisions are mathematically possible. In a 14.9T space, the birthday paradox predicts a 50% chance of at least one pair sharing a handle at ~4.5M users. Because messaging routes to keys (not handles), collisions do not impact security.

n ≈ √(2 × 14.9 × 10¹² × ln(2)) ≈ 4,547,000 identities

09

0 network calls

100% deterministic and offline username generation

No registration database is queried to generate the initial username. Same mnemonic → same seed → same Ed25519 public key → same username. It computes on an air-gapped device in under a millisecond.

f(Master Ed25519 Public Key) → Deterministic Username

10

~3.4 × 10³⁸ states

Identity space starts at 2¹²⁸ possibilities (BIP-39)

MNDO generates a 12-word BIP-39 mnemonic representing 128 bits of cryptographic entropy plus a 4-bit SHA-256 checksum, yielding 340,282,366,920,938,463,463,374,607,431,768,211,456 possible states.

2¹²⁸ ≈ 3.4028 × 10³⁸ (2.9 × 10²⁷ times all humans ever born)

11

2,048 iterations

PBKDF2-HMAC-SHA512 expands mnemonic to 512-bit seed

The BIP-39 mnemonic is stretched using PBKDF2 with HMAC-SHA512 and 2,048 iterations to produce a 64-byte (512-bit) master seed. The first 32 bytes initialize the master Ed25519 keypair.

PBKDF2(HMAC-SHA512, iterations: 2048) → 512-bit Seed → 32-byte Ed25519 Key

12

32-byte keys

Master cryptographic identity is Ed25519 (RFC 8032)

The master root identity uses Ed25519 on Curve25519. Public keys are 32 bytes (256 bits, 64 hex characters) and digital signatures are 64 bytes, providing 128-bit security.

Public Key: 32 bytes (256 bits) · Signature: 64 bytes (512 bits)

13

Isolated keys

Separate Nostr transport key derived via SHA-256

The master Ed25519 key and the Nostr relay transport key are cryptographically separated. MNDO derives the Nostr private key via SHA-256(mnemonic + '_nostr'), isolating transport keys from the root identity.

Nostr Key = SHA-256(Mnemonic + '_nostr') ≠ Master Ed25519 Key

14

MNDO-BIND proof

Master identity cryptographically binds Nostr transport key

MNDO signs a delegation statement formatted as 'MNDO-BIND:<nostr_pubkey>:<timestamp>' using the master Ed25519 key so peers can verify that a given Nostr transport key is authorized by that root identity.

Sign_Ed25519('MNDO-BIND:' + nostrPubkey + ':' + timestamp)

15

Dual signatures

Two-layer cryptographic presence authentication

Presence updates are Nostr events signed by the Nostr transport key, with an inner payload containing a masterSig signed by the Ed25519 root identity. Relay operators cannot spoof online status.

Event(Sign_Nostr) → Payload(Sign_Ed25519)

16

Kind 4444

Signal Protocol encryption encapsulated in Nostr Event 4444

The message pipeline is Plaintext → MNDO Message Envelope → libsignal Double Ratchet Encryption → Nostr Event Kind 4444 → Relay Mesh. Relays only receive and forward ciphertext.

Plaintext → Signal Session → Ciphertext Blob → Kind 4444 Event

17

Separation of layers

Nostr is the transport carrier; Signal is the encryption engine

Nostr provides decentralized relay transport, event delivery, and pubkey addressing. Signal provides cryptographic sessions, prekey distribution, and ratcheting. Relays cannot decrypt payloads.

Nostr = Blind Routing Layer · Signal = Cryptographic State Machine

18

Per-message keys

Double Ratchet changes encryption key on every message

The Signal Double Ratchet derives a fresh symmetric key for every single message and steps Diffie-Hellman ratchets. Exposing one message key never unlocks prior messages (Forward Secrecy) or future ones (Post-Compromise Security).

Message 1 (Key 1) → Message 2 (Key 2) → Message n (Key n)

19

X3DH

Asynchronous session initiation via X3DH prekeys

Devices publish Signal PreKey bundles: Identity Public Key, Signed PreKey + signature, One-Time PreKeys, and Registration ID. Any peer can establish an encrypted chat session even while the recipient is offline.

DH1 + DH2 + DH3 + DH4 (Extended Triple Diffie-Hellman)

20

5 event kinds

Dedicated Nostr event kinds isolate traffic types

MNDO partitions traffic across dedicated Nostr event kinds: 4444 (Encrypted Messages), 21111 (Ephemeral Presence), 0 (Profile Metadata), 10446 / 14446 (Signal PreKey Bundles), and 24242 (Blossom Media Auth).

Kinds: 4444 (Chat) · 21111 (Presence) · 0 (Metadata) · 10446 (PreKeys) · 24242 (Blossom)

21

256-bit key + 96-bit nonce

Voice notes get dedicated AES-256-GCM encryption

MNDO does not stream raw audio. Voice notes are encrypted locally before upload using AES-256-GCM with a newly generated 256-bit key and an unpredictable 96-bit nonce.

AES-256-GCM(audio_bytes, key: 256-bit, nonce: 96-bit)

22

SHA-256(ciphertext)

Encrypted audio files addressed via SHA-256 content hashes

After encryption, MNDO computes SHA-256 over the ciphertext bytes. The hash serves as the content identifier on Blossom storage servers, verifying tamper-proof delivery.

Blob ID = SHA-256(AES_GCM_Ciphertext)

23

Split secret

Encrypted media hosted on Blossom; key sent via Signal E2EE

Encrypted voice recording bytes are stored on Blossom servers, while the 256-bit key and 96-bit nonce needed for decryption are transmitted inside the Signal end-to-end encrypted message.

Encrypted Blob → Blossom Server · Decryption Secret → Signal Ratchet

24

Drift + SQLCipher

Local database encrypted via SQLCipher with 256-bit key

Persistent client-side data uses Drift over SQLite backed by SQLCipher. The 256-bit database encryption key is generated via Random.secure() and sealed in the hardware keystore via flutter_secure_storage.

Drift ORM → SQLite → SQLCipher (AES-256 CBC + HMAC-SHA512)

25

RAM wiped

SQLCipher memory-security explicitly enabled via PRAGMA

MNDO executes 'PRAGMA cipher_memory_security = ON;' during database initialization, instructing SQLCipher to zero out decrypted cache pages from RAM when freed.

PRAGMA cipher_memory_security = ON;

26

3 relays

Three configured default Nostr relays out of the box

The default build connects to relay.damus.io, nos.lol, and relay.snort.social simultaneously. Messages route through any active relay; losing one or two relays does not halt delivery.

Relays: relay.damus.io · nos.lol · relay.snort.social

27

Verifiable baseline

Audited baseline guarantees

What is directly verifiable in the repository: ~14.9 trillion deterministic handles (~127× all humans who ever lived), 2¹²⁸ identity entropy states (~3.4 × 10³⁸), 0 central servers or phone numbers, and per-message Double Ratchet keys.

14.9T Usernames · 2¹²⁸ Identity States · 0 Phone Numbers · 100% Inspectable

Inspected repository files