diff --git a/docs/nada-by-example/linear-scan.md b/docs/nada-by-example/linear-scan.md new file mode 100644 index 0000000..99e06a6 --- /dev/null +++ b/docs/nada-by-example/linear-scan.md @@ -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. + + + + +```python reference showGithubLink +https://github.com/NillionNetwork/nada-by-example/blob/main/src/list_scan_linear.py +``` + + + +```yaml reference showGithubLink +https://github.com/NillionNetwork/nada-by-example/blob/main/tests/list_scan_linear_test.yaml +``` + + + + \ No newline at end of file diff --git a/sidebars.js b/sidebars.js index 5ad997e..0184c82 100644 --- a/sidebars.js +++ b/sidebars.js @@ -481,6 +481,7 @@ const sidebars = { 'nada-by-example/for-loop', 'nada-by-example/reduce', 'nada-by-example/random-number', + 'nada-by-example/linear-scan', 'nada-by-example/voting', 'nada-by-example/r-p-s', {