Import identity sheet
The sheet that brings an existing identity onto the phone from a recovery phrase or a key file, with live validation.

Import identity is for a person who already has a Seed identity somewhere else. They paste a 12 word recovery phrase or the contents of a .seedkey file, optionally name the key, and tap Import. The sheet checks what was pasted as it is typed and says exactly what is wrong.

At a glance

Tab

Me

Route

import, path /me/import

Screen component

MeImportScreen in me.contract

Presentation

sheet (navigationPresentation="modal")

Title

"Import identity"

How you get here

"Import identity" on Me; "Import recovery phrase or key" on Vault; "Import identity" on Edit profile when the key is missing

Where it leads

Closes back to the screen under it. The imported identity is then current

There is no screenshot on this page. The captures of this sheet show a recovery phrase in the text area, and this documentation never shows one. In those captures the sheet sits above the keyboard with the bar ("Cancel", "Import identity", a filled teal "Import"), a text area card about five lines tall, the grey status line under it, and the name field as a second card.

Anatomy

    Navigation bar. Leading "Cancel". Title "Import identity". Trailing "Import", a filled tinted button (buttonStyle="bordered-prominent"), disabled until the pasted text is valid.

    Section "Recovery phrase or key file". A borderless text area at least 120 points tall, placeholder "12 words, or paste a .seedkey file". Autocapitalisation, autocorrection and spell checking are off. The footer is the live status line.

    Name section (no header). One text field, placeholder "Name (optional)". Pressing return in it submits the import.

The layout is the standard grouped form, see Forms and inputs.

States

The footer under the text area is the whole state display. It is grey (-exact-secondary-label) when things are fine and -exact-system-red when the text is not valid or the import was refused.

What was typed

Status line

Import button

Nothing

empty

disabled

Fewer or more than 12 or 24 words

"7 of 12 words." in red

disabled

One unknown word

"Word 2 is not a valid recovery word." in red

disabled

Several unknown words

"Words at positions 2, 4 are not valid recovery words." in red

disabled

Wrong checksum

"Invalid recovery phrase checksum. The 12th word must match the checksum of the others." in red

disabled

A valid phrase

"12 words, checksum OK." in grey

enabled

Text that starts with {

"Key file" in grey

enabled

Importing

unchanged

reads "Importing…", disabled

Refused by storage

the reason in red, for example "Name already exists, delete it first."

enabled again

The wording comes from the import check in the data module and from me.test.contract.

Actions

Gesture

Result

Type or paste in the text area

The status line updates as the text changes

Type a name

Sets the local key name. Optional

Tap "Import", or press return in the name field

Stores the key, makes the identity current, clears both fields and closes the sheet

Tap "Cancel" or swipe the sheet down

Closes the sheet

Both fields are emptied each time the sheet is opened. The pasted text is never saved: the contract comment says the name draft may survive a reload but "never the import text: it may be a recovery phrase or key".

Components used

Component

Kind

What it does here

list and section

primitive

The grouped form and its two sections

header, footer and nav

primitive

The sheet's bar, the section header, the status footer

button

primitive

"Cancel" and "Import"

input, textarea, select and label

primitive

The text area for the phrase or key file, the name field

text

primitive

Title, section header, the status line

row, column and view

primitive

The screen root and the name field's row

No named component, platform part or inline part is used. The status footer follows the same rule as the one on Server and the key name footer on Identity detail.

Why it is designed this way

    One field for two formats. A phrase and a key file are both "the thing you saved", so the sheet takes either in the same text area and works out which it is. DESIGN.md asks for a "textarea for 12/24 words with validation, or paste seed-key JSON".

    The error says which word. Typing 12 words on a phone is error prone. Naming the position of a bad word, or counting "7 of 12 words.", lets the person fix it without starting over. See Honest state and Voice and wording.

    Success is confirmed before the tap. "12 words, checksum OK." appears in grey as soon as the phrase is valid, so the enabled button is not the only signal. Inferred from the grey and red rule on the footer.

    The keyboard is told to stay out of the way. No capitals, no autocorrect, no spell check, because recovery words and key files must not be altered. See Forms and inputs.

    A sheet with the action in the bar. The filled "Import" stays visible above the keyboard, where a button at the bottom of the form would be covered. Inferred from the captures, where the keyboard hides everything below the name field. See Buttons and actions.

User stories

This page helps deliver these stories. Each story lists this page in its Trace, so the link holds in both directions (traceability).

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime