oneie 5.3.4 → 5.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +1 -1
- package/dist/src/lib/vaultfile.js +19 -0
- package/package.json +1 -1
package/dist/package.json
CHANGED
|
@@ -151,6 +151,24 @@ export function keychainRead(authPub) {
|
|
|
151
151
|
return { ok: true, value: r.stdout.toString().trim() };
|
|
152
152
|
}
|
|
153
153
|
// ─── Paper ───────────────────────────────────────────────────────────────────
|
|
154
|
+
/**
|
|
155
|
+
* Where else the words open. Only v2 is BIP-39 at the standard paths, so only a v2
|
|
156
|
+
* sheet may name other wallets — v1 is ONE's own scheme and opens an empty account
|
|
157
|
+
* anywhere else. The wallet list is pinned against independent derivations at those
|
|
158
|
+
* paths in one.ie/web/tests/unit/wallet/sheet-other-wallets.test.ts.
|
|
159
|
+
*/
|
|
160
|
+
function otherWallets(restore) {
|
|
161
|
+
if (restore.derivation === 'v2') {
|
|
162
|
+
return [
|
|
163
|
+
'These words also open in: MetaMask (Ethereum), Phantom (Solana), Sui Wallet / Slush (Sui),',
|
|
164
|
+
' Sparrow or BlueWallet (Bitcoin, native SegWit). The first account in each is the address above.',
|
|
165
|
+
];
|
|
166
|
+
}
|
|
167
|
+
return [
|
|
168
|
+
`These words recover only with ONE tools (\`${restore.cli} wallet new --recover --derivation v1\``,
|
|
169
|
+
' or `npx @oneie/recover --derivation v1`) — not in other wallets.',
|
|
170
|
+
];
|
|
171
|
+
}
|
|
154
172
|
/**
|
|
155
173
|
* The 24 words laid out for transcription, numbered.
|
|
156
174
|
*
|
|
@@ -192,6 +210,7 @@ export function paperSheet(mnemonic, addresses, restore) {
|
|
|
192
210
|
...Object.entries(addresses).map(([chain, addr]) => ` ${chain.padEnd(5)} ${addr}`),
|
|
193
211
|
'',
|
|
194
212
|
`Derivation: ${restore.derivation} (restore MUST name it — without it the same words open a different, empty wallet)`,
|
|
213
|
+
...otherWallets(restore),
|
|
195
214
|
'',
|
|
196
215
|
`Restore with: ${restore.cli} wallet new --recover --derivation ${restore.derivation}`,
|
|
197
216
|
' The words go in ONE_WALLET_MNEMONIC, set without echo first:',
|