Docs/Guides
Unlock
Derive your keys from one wallet signature, and lock them away again.
Unlocking turns a wallet signature into the keys that hold your private balance and find your payments. Nothing is sent anywhere: the signature and every key made from it stay on the device.
App
Open /app. Before you connect, the page shows its layout with the balance marked Sealed until you unlock. Press Connect a wallet, choose your wallet, then approve the message it shows:
Liora unlock v1
Sign to derive your private keys. This signature stays on this device.The page shows Waiting for the signature, then Unlocking, then your private balance. Your wallet's address appears at the top right with Lock and Disconnect beside it.
SDK
const state = await liora.unlock(wallet, (s) => render(s.state));The callback receives unlocking and then the final state:
{
"state": "unlocked",
"wallet": "EViimyfpZdQJtspZ3ZGKjja7ms1qJymVh5dsT6JrYSF4",
"metaAddress": "liora:1:818c38b64a0b498c277d851d1ec9a29361e7f01094681ec65a40ce3192a99f90b4a34070fd972d0c51615458d787457ef3a8ae50cbaacb8f02949ba99830a825"
}unlockState() returns the current state at any time, without asking the wallet.
CLI
liora keys --keypair payer.jsonstate unlocked
wallet CzjFSHbXGRVVZfDKmyAT1mA9m63nSfBvrHPyyv9hxo9E
metaAddress liora:1:8a1e363a240d7bc035e9096033e3c62416fc2d908af0fef86fda3749b5f7b4207efbb943ccea5a63ba9ce3bd7be6933035207143aa5de55d251abd3dbd7f1306Every holder command unlocks from the keypair file by itself and drops the keys when it ends. keys does only that and prints the result.
#What the signature is used for
The wallet signs one fixed message. The same wallet always produces the same signature, so it always produces the same keys, on any device and in the app, the SDK and the CLI alike. Private balances shows the derivation.
The unlock signature authorizes no transaction. After it, the wallet signs again only for a deposit, a registration, or an issuer's action. Payments and withdrawals are authorized by a proof made from the derived keys.
#Locking
App
Press Lock. The keys are dropped and the balance is sealed again. Disconnect also forgets the wallet. Closing the tab does the same as Lock.
SDK
liora.lock();CLI
Nothing to do. Each command locks when it exits.
#If it fails
| What you see | Why | Next |
|---|---|---|
WALLET_REJECTED | The signature was declined in the wallet | Unlock again and approve. In the app, an Unlock button appears in the bar at the top |
SIGNATURE_INVALID | The signature does not verify for that wallet and message | Use a wallet that signs plain messages with Ed25519 |
UNLOCK_FAILED | The keys could not be derived from the signature | Unlock again |