StaticfromDerives a new, cryptographically isolated Handle for a specific context.
Each Handle is derived deterministically. The same name will always produce the same Handle from the same Identity, but different names produce completely unrelated keys.
The context identifier (e.g., 'alice@example.com', 'station-001').
Optionalmetadata: HandleMetadataOptional metadata to associate with this Handle.
A Promise resolving to the derived Handle.
Atomically derives a SubHandle from this Identity by its full path.
This method performs the equivalent of:
const handle = await identity.deriveHandle(handleName);
const sub = await handle.deriveSubHandle(subName);
but in a single call, without exposing the intermediate Handle.
It is the recommended entry point for stateless session verification, because the server only needs the Identity and the path from the token.
The resulting SubHandle is cryptographically identical to the one produced
by Handle.deriveSubHandle(subName) on the same Identity.
The parent Handle name.
The SubHandle name.
Optionalmetadata: SubHandleMetadataOptional SubHandle metadata with constraints.
A Promise resolving to the derived SubHandle with path [handleName, subName].
Issues an attestation binding a derived Handle key to its name
and grant. The subject public key is always derived internally —
it is impossible to attest a foreign key, and the resulting
subjectId always matches the handle reconstructed via
Identity.deriveSubHandle.
Constraints verifiers will enforce for this handle
and (via subNamePatterns) for the SubHandles it may attest.
Optionalopts: { OptionalttlOptionalexpiresOptionaljti?: stringOptionalnow?: numberAn attestation signed by the Identity root key. Store it with the Handle — it is a public artifact, not a secret.
Represents the root cryptographic identity derived from a seed phrase.
An Identity is the foundation of the Me2em protocol. It allows for the hierarchical derivation of isolated Handles and SubHandles for different contexts (e.g., email, social, specific devices) from a single master seed, ensuring zero cross-contamination of cryptographic material.
The Identity provides two derivation entry points: