@dotrino/vaultd 0.180.3 → 0.181.1
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/lib/src/core/libVersion.js +1 -1
- package/lib/src/core/vault.js +10 -0
- package/package.json +2 -2
package/lib/src/core/vault.js
CHANGED
|
@@ -4746,6 +4746,16 @@ export async function startVault ({ platform, proxyUrl, log = console.log, onEnr
|
|
|
4746
4746
|
}
|
|
4747
4747
|
} catch (e) { log(`[vault] unlock: could not remove expired devices: ${e.message}`) }
|
|
4748
4748
|
}
|
|
4749
|
+
// Y LA CLAVE DE CONTENIDO A QUIEN LE FALTE (una bóveda hermana entró sin ella, y sin
|
|
4750
|
+
// ella no cifra ni la lista de variables de la consola). Mismo momento, mismo motivo.
|
|
4751
|
+
if (r?.locked === false) {
|
|
4752
|
+
try {
|
|
4753
|
+
const { named, wrapped = [], seq } = await identity.completeKeyring?.() || {}
|
|
4754
|
+
if (named) log(`[vault] unlock: named this vault's encryption key in record #${seq}`)
|
|
4755
|
+
for (const pub of wrapped) log(`[vault] unlock: wrapped the content key for ${await deviceIdOf(pub).catch(() => '????-????')} · record #${seq}`)
|
|
4756
|
+
if (named || wrapped.length) { await notifyMembers('keyring'); await announceToSiblings('content key wraps') }
|
|
4757
|
+
} catch (e) { log(`[vault] unlock: could not complete the content key wraps: ${e.message}`) }
|
|
4758
|
+
}
|
|
4749
4759
|
// Y DESPUÉS, LOS SOBRES A LA LLAVE VIGENTE: la poda de arriba pudo rotarla.
|
|
4750
4760
|
if (r?.locked === false) {
|
|
4751
4761
|
try { await resealStaleThreads('unlock') } catch (e) { log(`[vault] unlock: could not reseal old envelopes: ${e.message}`) }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotrino/vaultd",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.181.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Certificador personal de Dotrino: daemon headless que custodia la clave maestra y delega capacidades a tus dispositivos por el proxy. Tu CA propia.",
|
|
6
6
|
"bin": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@dotrino/compat": "0.4.0",
|
|
25
|
-
"@dotrino/identity": "0.
|
|
25
|
+
"@dotrino/identity": "0.130.1",
|
|
26
26
|
"@dotrino/opaque": "0.1.0",
|
|
27
27
|
"@dotrino/passmanager": "0.18.6",
|
|
28
28
|
"@dotrino/proxy-client": "^0.45.0",
|