You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 2, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: i18n/es/docusaurus-plugin-content-docs/version-V3/guides/groups.mdx
+17-2Lines changed: 17 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,11 @@ Estos son algunos ejemplos de uso de los grupos:
16
16
- Denunciantes que están verificados como empleados de una organización.
17
17
18
18
Un grupo Semaphore es un [árbol de Merkle incremental](/docs/glossary/#incremental-merkle-tree), y los miembros del grupo (por ejemplo, [identity commitments](/docs/glossary/#identity-commitments)) son las hojas del árbol.
19
-
Los grupos Semaphore determinan los siguientes dos parámetro:
19
+
Los grupos Semaphore determinan los siguientes tres parámetro:
20
20
21
21
-**Group id**: un identificador único para el grupo;
22
-
-**Tree depth**: el número máximo de miembros que puede contener un grupo (`max size = 2 ^ tree depth`).
22
+
-**Tree depth**: el número máximo de miembros que puede contener un grupo (`max size = 2 ^ tree depth`);
23
+
-**Members** la lista de miembros para inicializar el grupo.
23
24
24
25
Aprenda cómo trabajar con grupos.
25
26
@@ -38,6 +39,7 @@ Utilice la clase `Group` de la librería [`@semaphore-protocol/group`](https://g
38
39
39
40
-`Group id`: un identificar único para el grupo;
40
41
-`Tree depth`: (_default `20`_) el número máximo de usuarios que puede contener un grupo, el valor por defecto es 20 (`max size = 2 ^ tree depth`).
42
+
-`Members`: (_default `[]`_) la lista de miembros para inicializar el grupo.
41
43
42
44
#### Instalar librería:
43
45
@@ -80,6 +82,19 @@ import { Group } from "@semaphore-protocol/group"
80
82
const group =newGroup(1, 30)
81
83
```
82
84
85
+
También puede inicializar un grupo con varios miembros pasando la lista de identity commitments (miembros) como tercer parámetro al crear el grupo:
Copy file name to clipboardExpand all lines: versioned_docs/version-V3/guides/groups.mdx
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,11 @@ Example uses of groups include the following:
16
16
- whistleblowers who are verified employees of an organization.
17
17
18
18
A Semaphore group is an [incremental Merkle tree](/docs/glossary/#incremental-merkle-tree), and group members (i.e., [identity commitments](/docs/glossary/#identity-commitments)) are tree leaves.
19
-
Semaphore groups set the following two parameters:
19
+
Semaphore groups set the following three parameters:
20
20
21
21
-**Group id**: a unique identifier for the group;
22
-
-**Tree depth**: the maximum number of members a group can contain (`max size = 2 ^ tree depth`).
22
+
-**Tree depth**: the maximum number of members a group can contain (`max size = 2 ^ tree depth`);
23
+
-**Members**: the list of members to initialize the group.
0 commit comments