Skip to content
Names Wallet

How the one-time key is handled

The LNS page makes a one-time key in your tab and offers it as an optional backup file. This is where the key lives, what you trust while the page runs, and what you lose when.

Testnet only: the coins have no value.

The key lives in this tab

  • The page makes the key when you press Register free, from your browser's random number generator. You never paste a key, seed or wallet into the page.
  • The key lives in this tab's memory while it is open, and in the backup file only if you download one. The page never writes it to browser storage, cookies, the address bar or history.
  • A backup file you select later is read in the page and checked against its one-time address; it is not uploaded anywhere.
  • The page signs its transactions with the key in this tab. Only the signed transactions leave, to the chain door lez.nameswallet.app, plus the key's public key and address, and your address, to the faucet (it gives once per wallet).
  • When the page has sent the change back, it wipes the key from its memory.

What the page keeps in your browser

  • One note, lns-order-v2: the name, your address, the one-time address, the step and the transaction ids. No key and no secret. It only reminds you which backup file to select when you come back.
  • The page doesn't trust that note: other pages of the same site could change it. A backup file decides the order and the chain decides the step. The file carries a seal, so a damaged or mixed-up file is refused; anyone who has the file can still change it and seal it again, so keep it to yourself.
  • One tab at a time: a second tab of the page says the page is open elsewhere and does nothing.

What you trust while it runs

  • This page's code, and any other script on the same site that opened this tab. While the key is in this tab, changed code could read it or send anything.
  • The chain door, lez.nameswallet.app. It is the page's only view of the chain. It sees your IP address, the addresses the page reads and the signed transactions. It can't change a signed transaction or send the name or the change anywhere but your address. It can refuse to forward, or answer falsely. The page wants the same answer over three blocks before any step it can't undo, but a door that lies the same way every time could still make it stop early, send things that fail and are charged, or send your coins back while the one-time key still holds the name. So if you downloaded a backup file, keep it even if the page says someone else holds the name, until your own wallet shows the name and the coins.

What you lose, and when

  • The tab stays open until Done: nothing. The name and the leftover test LEZ go to your address.
  • The tab closes before Done, and you have no backup file: the test LEZ paid in is lost (it has no value), and if the registration had already landed, so are the name and its deposit.
  • The tab closes before Done, and you downloaded a backup: nothing, if you come back within 24 hours: select the file and the page carries on from the chain. Later than that, one more fee and 15 more minutes.
  • You press "Send it all back": what the one-time address holds goes to your address, minus fees already spent.
  • You type the wrong address: the name, its deposit and the leftover go there. There is no undo.
  • When can I delete a backup file? When the page says so, after it has checked over several blocks that the one-time address is empty and the name is yours. The safest time is when your own wallet shows the name and the coins.

Back to registering a name