@dotrino/identity 0.25.0 → 0.25.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/package.json +1 -1
- package/vault/core.js +6 -3
package/package.json
CHANGED
package/vault/core.js
CHANGED
|
@@ -1027,9 +1027,12 @@ export async function createIdentityCore ({ kv: rawKv, peers, makeSync = null, k
|
|
|
1027
1027
|
|
|
1028
1028
|
async isMaster () { return amMaster() },
|
|
1029
1029
|
|
|
1030
|
-
/**
|
|
1031
|
-
|
|
1032
|
-
|
|
1030
|
+
/**
|
|
1031
|
+
* Admite un miembro (solo el master). El cert lo emite quien llama, antes o después.
|
|
1032
|
+
* `continuity`: si esa identidad ya existía por su cuenta, su puente firmado (F3).
|
|
1033
|
+
*/
|
|
1034
|
+
async admitMember ({ pub, encPub = null, label = '', caps = ['store', 'read'], cert = null, continuity = null } = {}) {
|
|
1035
|
+
const acta = await sealChanges([{ op: 'admit', member: { pub, encPub, label, caps, cert, continuity } }])
|
|
1033
1036
|
return { ok: true, seq: acta.seq }
|
|
1034
1037
|
},
|
|
1035
1038
|
|