-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from NillionNetwork/feat/linear-scan
add linear scan example to nada-by-example
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Linear Scan | ||
|
||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
import TestProgram from '@site/src/components/TestProgram/index'; | ||
|
||
The linear scan example scans a list of secret values from multiple parties, checking for the existence of specific values. The example uses a reusable helper function for the logic for determining whether a given value is present or isn't present in the list. | ||
|
||
<Tabs> | ||
|
||
<TabItem value="program" label="Nada program" default> | ||
```python reference showGithubLink | ||
https://github.com/NillionNetwork/nada-by-example/blob/main/src/list_scan_linear.py | ||
``` | ||
</TabItem> | ||
|
||
<TabItem value="test" label="Test file"> | ||
```yaml reference showGithubLink | ||
https://github.com/NillionNetwork/nada-by-example/blob/main/tests/list_scan_linear_test.yaml | ||
``` | ||
</TabItem> | ||
</Tabs> | ||
|
||
<TestProgram programName="list_scan_linear"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters