Skip to content

Commit

Permalink
Merge pull request #104 from NillionNetwork/fix/reveal
Browse files Browse the repository at this point in the history
fix: reveal to to_public
  • Loading branch information
nilmemo authored Nov 27, 2024
2 parents 4bc6152 + 8d0b4f7 commit c8ab6ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/_operations-table.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
| [Comparisons](/nada-by-example/comparison) | `x < y`,<br/> `x <= y`,<br/> `x > y`,<br/> `x >= y` | `P ← P < P`,<br/> `S ← P < S`,<br/> `S ← S < P`,<br/> `S ← S < S` |
| [Ternary](/nada-by-example/if-else) _"if else"_<br/> (public condition) | `cond.if_else(x, y)` | `P ← P.if_else(P, P)`,<br/> `S ← P.if_else(P, S)`,<br/> `S ← P.if_else(S, P)`,<br/> `S ← P.if_else(S, S)` |
| [Ternary](/nada-by-example/if-else) _"if else"_<br/> (secret condition) | `cond.if_else(x, y)` | `S ← S.if_else(P, P)`,<br/> `S ← S.if_else(P, S)`,<br/> `S ← S.if_else(S, P)`,<br/> `S ← S.if_else(S, S)` |
| [Reveal](/nada-by-example/reveal) <br/> (convert a private<br/> value into a public value) | `x.reveal()` | `P ← S.reveal()` |
| [Reveal](/nada-by-example/reveal) <br/> (convert a private<br/> value into a public value) | `x.to_public()` | `P ← S.to_public()` |
| [Equality](/nada-by-example/equality) | `x == y` | `S ← S == S`,<br/> `S ← S == P`,<br/> `S ← P == S`,<br/> `P ← P == P` |
| [Public Output Equality](/nada-by-example/equality) <br/> (publicly output if two secrets are equal) | `x.public_equals(y)` | `P ← S.public_equals(S)` |
| [Not](/nada-by-example/not) | `~bool` | `S ← ~S`,<br/> `P ← ~P` |
2 changes: 1 addition & 1 deletion docs/nada-numpy-array-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
| `dot` | `other: NadaArray` | Compute the dot product between two `NadaArray` objects. |
| `hstack` | `other: NadaArray` | Horizontally stack two `NadaArray` objects. |
| `vstack` | `other: NadaArray` | Vertically stack two `NadaArray` objects. |
| `reveal` | | Reveal the elements of the array. |
| `to_public` | | Reveal the elements of the array. |
| `apply` | `func: Callable[[Any], Any]` | Apply a Python function element-wise to the array. |
| `mean` | `axis=None, dtype=None, out=None` | Compute the mean along the specified axis. |
| `output` | `party: Party, prefix: str` | Generate a list of Output objects for each element in the `NadaArray`. |
Expand Down

0 comments on commit c8ab6ca

Please sign in to comment.