White Paper

Nerv3 digital identity anchors onboarding, device authorization, and authentication in verifiable cryptographic state rather than in ordinary account-session assumptions.

This paper explains what a Nerv3 Digital Identity is, how onboarding establishes it, how authorized devices unlock it through password and passkey flows, and which lifecycle operations are available now versus still under development.

UpdatedApril 6, 2026
Read time11 min

System frame

Read the current operating boundary before treating any capability as durable policy.

These documents are implementation-bound. They describe how Nerv3 currently behaves, where authority is anchored, and which lifecycle capabilities are still intentionally outside the active trust model.

01

Problem statement

Conventional account systems often collapse usernames, database rows, recovery tooling, and session cookies into a single implied source of authority. Nerv3 rejects that shortcut. The architecture separates interface state from cryptographic authority so convenience layers do not silently become the trust anchor.

A Nerv3 Digital Identity is a cryptographically anchored user identity composed of a root key, an encrypted vault, signed device authorization records, and a human-readable alias. The design objective is a sovereign identity model in which access is grounded in verifiable cryptographic state while the application layer remains free to mirror state for usability.

02

Current trust model

The current implementation treats the client registry as a derived cache rather than a canonical authority. The alias is a useful canonical reference for a person or entity, but it is not the identity's security anchor. Locked restore is reconstructed from the identity public key, a local IndexedDB device entry, Gun authorization records, and the encrypted vault. NextAuth mirrors session state for application UX, but it is not the cryptographic source of truth.

This distinction matters because client state can be stale, copied, or incomplete. The unlock path therefore re-derives authorization from the records that actually govern access, re-establishes access to the vault key through the device's configured strategy, and authenticates the root key before the session is regarded as valid.

03

Registration and onboarding flow

During onboarding, Nerv3 generates a root key pair, generates a device key pair, constructs an encrypted identity vault, and writes signed device authorization records to Gun. The username reservation flow then binds the selected alias to the root public key through the remote registration service.

The first authorized device is not a convenience detail; it is part of the continuity model. Registration is complete only after the alias, encrypted vault state, device authorization records, and local material needed for subsequent unlock are in place. The result is a Digital Identity whose public registration and authorized-device state can be evaluated independently of any individual UI session.

04

Password unlock path

The password unlock path now centers on protected material together with a server-managed verifier store. Redis serves as the primary verifier and rate-limit backend, while MongoDB serves as the durable fallback. Fresh Gun records are expected to carry protected material without embedding legacy verifier data.

Where a legacy password record is encountered, the unlock path seeds the server verifier store from the submitted password and migrates the device-access record forward. Local device entries may then be compacted to remove older migration-only material.

This is a hardening step rather than an end state. The strategic direction remains further reduction of locally persisted secret material and cleaner reconstruction of locked state from public identifiers plus remote authorization records.
05

Passkey unlock path

Passkey authentication uses WebAuthn to unwrap a vault key by means of a key-encryption key derived from the same assertion ceremony. The implementation intentionally avoids generating a second challenge for KEK derivation because doing so would undermine the security assumptions of the ceremony and the unlock path.

The passkey path also avoids password-only local-entry checks. Strategy-specific validation is used so that passkey devices are not blocked by fields that belong exclusively to historical password flows.

06

Identity lifecycle operations

The practical lifecycle of a Nerv3 Digital Identity consists of four operations: identity registration and first-device binding, authentication from an already authorized device, pairing a new device, and recovering access to an identity. That is the correct conceptual model for the platform even though not every lifecycle operation is yet released.

At present, the first two operations are the current production posture. Registration and authorized-device authentication are implemented. New-device pairing and identity recovery remain planned capabilities and should not be treated as guarantees or assumed parts of the active trust model until they are delivered.

07

Progressive migration strategy

The system is designed to migrate stale records in-band after a successful unlock. Signed device-access records and authorized-device records are rewritten in the current format once the root key has been re-established and the device has proven that it remains legitimately authorized.

This approach avoids a single breaking migration window while progressively reducing the lifetime of weaker legacy states.

08

Known limitations

Two major lifecycle capabilities remain pending: identity recovery and pairing a new device. Their absence is material. The present model assumes that a valid paired device exists and that the user can satisfy its unlock strategy.

That limitation is not incidental; it is part of the current trust boundary. Until recovery and device-pairing flows are released, operational guidance should make clear that continuity depends on retaining access to an authorized device.

09

Direction of travel

The near-term direction is clear: continue reducing reliance on locally persisted secret material, keep session state subordinate to cryptographic proof, preserve strong rate-limit enforcement around password verification, and introduce recovery and device-pairing only in a manner that does not compromise the current trust model.

The platform should continue to prefer explicit, auditable security transitions over opaque convenience mechanisms. That principle underlies both the current implementation and the next stage of work.

Documentation posture

Professional documentation has to track the real system, not the intended one.

As identity recovery, device pairing, and future trust transitions ship, these pages should evolve with the implementation rather than drift into generic policy text.