English

For advanced users

Differences from Electrum

Platurum is built on the code of Electrum. Most of the wallet is the same. This page lists what is different and what is new.

This page describes release 1.0.1 of Platurum and the code that it is built from.

What stays the same

The wallet engine, the way keys are created and stored, the twelve recovery words (in the same format as in Electrum), the Electrum server protocol and the Lightning code all come from Electrum. A wallet created in Platurum can be restored in Electrum from its recovery words, and the other way round. Before you do this with a wallet that has Lightning channels, read this warning.

Interface

  • A redesigned Android interface, following Material Design 3 by Google, in light and dark themes.
  • One interface. The older classic look is removed from the mobile app, so the whole app uses the new interface.
  • Colors of the Platurum logo in the theme of the app.
  • Many fixes in screens and dialogs. For example, dialogs stay above the on-screen keyboard, and a tap on an empty part of a dialog no longer reaches the page below it.

Lightning routing

  • The wallet finds routes itself. The mobile app of Electrum uses trampoline routing by default: it hands each payment to a trampoline node, which finds the rest of the route. Platurum always finds routes itself, on your phone, from its own map of the Lightning network. Platurum does not support trampoline routing.
  • It learns from failures. When a payment attempt fails, the wallet remembers where it failed, for each channel and for each pair of nodes, and avoids that place on the next attempts. With each failed attempt of the same payment, it is more careful with channels whose free balance it does not know. Each wallet keeps what it has learned.
  • The network map stays current. The map is updated in the background, by default only on Wi-Fi. Closed channels are removed from it. If a node keeps sending back channels that were already removed, the wallet disconnects from it and does not take map updates from it for some time.
  • A safety margin in blocks. A Lightning payment must be completed within a set number of new blocks (the CLTV value of the invoice). The wallet adds a margin to this number for the invoices that it pays, so that a payment does not fail only because a new block arrived while it was on its way.

The price of finding routes on the phone: the first download of the network map takes a few minutes and a fair amount of data, and the map takes some storage space.

Opening a channel

  • Search by name. In the field “Search a node by name”, type part of the name of a node, and the wallet looks for it in its map of the whole Lightning network. Each result shows how many channels that node has. While you type, the wallet completes the name of the first result in a paler color; a tap on the field, the arrow at its end or the action key of the keyboard chooses that node.
  • A suggested node. The button “Suggest a node” picks one at random from the 30 largest nodes of the map that pass the same checks as the node suggestion of the desktop app of Electrum, that you have no channel with yet, and that have an address the wallet can connect to. The button “Another node” picks a different one.
  • Names are not verified. The name of a node is written by its owner, and the wallet does not check it. Before you open a channel, check the node ID.

The search and the suggestion work once the network map is downloaded. You can always paste or scan the address of a node instead. The mobile app of Electrum has no search and no suggestion: there you paste or scan the address of a node, or, with trampoline routing, choose one from a short built-in list of trampoline nodes.

Closing channels

  • Cooperative close with LND nodes. Recent versions of Electrum dropped the older way of agreeing on the closing fee. Because of this, a cooperative close with an LND node could fail. Platurum can agree on the closing fee with such nodes again.
  • No force close after a failed negotiation. If the two sides cannot agree on closing a channel, Platurum does not force-close it. The channel stays in the closing state and cannot be used for payments. The wallet tries a cooperative close again the next time it connects to that node. A force close is left to you. If the other node reports an error, the channel is still force-closed, as in Electrum.

Channel backups

  • In Electrum, a channel backup is encrypted with the master public key of the wallet (xpub). This is on purpose: it lets a wallet without private keys open its backups too. The code of Electrum itself lists a switch to a key derived from the recovery words as a task for later.
  • What a backup holds. The private key of your Lightning node. For channels of the modern type (with anchors), which Electrum and Platurum both open today, it also holds the key that receives your share of the money in the channel after the channel is closed.
  • Why this matters. A master public key is often shared: with services, with an accountant, with a watch-only wallet. A backup is often kept in email, in a messenger or in the cloud, because it is encrypted. Whoever has both can open the backup, ask the other node, in the name of your node, to close the channel and, for a channel of the modern type, take your share, if they do it before your wallet does. The master public key alone is not enough: the backup itself is needed too.
  • In Platurum, a channel backup is encrypted with a key derived from your recovery words (and from the custom words that extend them, if you added any), and the same key protects it from changes. Only a wallet with the same words can open such a backup, and the wallet refuses such a backup if someone else made or changed it.
  • Older backups still work. A backup made by Electrum or by an early build of Platurum can still be imported into the same wallet. A wallet without private keys still writes its backups the old way, with the master public key.
  • One set of recovery words: Lightning on one device. As in Electrum, a backup does not let a second device use a channel: it only lets that device close the channel (see the next section). On a second device, use only the on-chain balance, or move the whole wallet there.

Closing a channel yourself, from a backup

  • In Electrum, a channel backup can only ask. It holds the keys of a channel, not its current state. After a restore, the wallet can only ask the other node to close the channel. If that node never comes back online, the money stays locked in the channel.
  • In Platurum, the backup also keeps the latest state of each channel. You choose where the wallet keeps its channel backup, for example in a Nextcloud folder or in a folder that Syncthing copies to another device. A few seconds after each payment that you send or receive, the wallet writes the new state of the channel there. A backup that you send yourself, by email or in a messenger, does not hold the state: it can only ask the node to close the channel.
  • If the other node does not answer, you can close the channel yourself. Restore the wallet from your recovery words and open the backup in it. The wallet first asks the other node to close the channel. If the node does not answer, you choose: close the channel now, or let the wallet wait one day or 7 days. While it waits, it asks the node again from time to time while the app is open. If the node still does not answer, the wallet closes the channel by itself when the wait is over: right then if the app is open, otherwise the next time you open it. While a proxy is on, it does not close the channel by itself; it only asks the node again.
  • The money comes back to your on-chain balance after the delay of the channel. When the closing transaction is in a block, your part of the channel waits for a number of blocks that was set when the channel was opened. The app shows this time in days and blocks. Then the wallet takes your part while it is open.
  • If the other node publishes an old state, your wallet punishes it. An old state here is a state of the channel that is older than the one in your backup. As in any Lightning wallet that has the data of its channels, your wallet then gets your part of that state and also takes the part of the node. It can do this only while it is open, and only before the node's own wait is over and the node can take that money itself: in that old state, the part of the node waits for a number of blocks that your wallet set when the channel was opened, and this wait is not the one of your part in the point above. So, until such a channel is closed, the app asks you on the page of the channel to open the wallet at least once every few days; the number of days depends on the node's own wait. In Electrum, a channel from a backup is not protected this way. This protects you from the node; it does not make an out-of-date backup safe, as the next point says.
  • The honest limit: only the newest state is safe. The backup is out of date if a payment was sent or received after it was written, or if it had not left the phone yet (for example, without a network). If the other node then comes back, or a watchtower that works for it notices the closing transaction, before your wallet takes the money, that node can take everything in the channel. So the wallet checks before it closes: it reads every backup file it knows again and shows when the state was saved. It refuses while the node answers, when the node shows that the backup is out of date, when two devices used the channel, or when a backup file cannot be read. If the phone was lost in the middle of a payment, only the other node can close the channel. Not sure? Wait: the node may still answer.

Privacy

  • No error reports to anyone. The app of Electrum can send an error report to a server of the Electrum project when you press Send. Platurum does not send error reports anywhere. If the app hits an unexpected error, it shows the details on the screen.
  • Logs that you share yourself. You can write a log file and share it, for example with a bug report. Addresses, transaction IDs, channels, nodes and wallet names are replaced before the log leaves the app. A second button, “Share full log file”, shares the log without these replacements, for a developer you trust: the app first shows a window that says what the file shows, and shares it only if you confirm there.

Everything the app sends, and to whom, is on the page Privacy.

Name and look

Platurum has its own name, icon and Android package name. It installs next to Electrum as a separate app with its own data, and it does not touch the wallets and settings of Electrum.

The Android package name: app.platurum.wallet

Why a separate project

Electrum is an excellent base, and Platurum is grateful to its developers. Platurum is a separate project so that it can move at its own pace and make its own decisions. Read more on the page Why Platurum.