Back to Home
web2.session

Create Session

Create a managed session using your Ed25519 key. The session is required for all authenticated operations (secrets, encryption, etc.).

Prerequisites missing

If you haven't registered yet, you can register first. If you already registered, enter your principalId and Ed25519 private key below.

createManagedSession

Create Managed Session

Generates an ephemeral EOA keypair, authenticates with the blackbox using your Ed25519 signer, and creates a session that auto-renews.

const session = await web2.session.createManagedSession({
principalId: '<enter principalId>',
ed25519Signer,
blackboxUrl: 'https://cifer-blackbox.ternoa.dev:3010',
});

// session.sessionAddress → ephemeral EOA
// session.expiresAt → ISO timestamp
// session.ensureValid() → auto-renew

Console Output

Waiting for action...