-
Notifications
You must be signed in to change notification settings - Fork 52
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 #59 from NillionNetwork/v0.3.0
SDK release v0.3.0
- Loading branch information
Showing
25 changed files
with
1,547 additions
and
24,445 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,18 @@ | ||
|
||
1. Create a python [virtual environment](https://docs.python.org/3/library/venv.html) | ||
|
||
``` | ||
python3 -m venv .venv | ||
``` | ||
|
||
2. Activate the python virtual environment | ||
|
||
``` | ||
source .venv/bin/activate | ||
``` | ||
|
||
3. Install [nada-dsl](https://pypi.org/project/nada-dsl/) | ||
|
||
``` | ||
pip install nada-dsl | ||
``` |
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 |
---|---|---|
@@ -1,7 +1,62 @@ | ||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
# Compute | ||
|
||
Perform computation using secrets stored in the network. | ||
|
||
|
||
## Get a Quote to Compute | ||
|
||
<Tabs> | ||
|
||
<TabItem value="getquote" label="Get quote to compute" default> | ||
```ts reference showGithubLink | ||
https://github.com/NillionNetwork/cra-nillion/blob/main/src/nillion/components/ComputeForm.tsx#L53-L60 | ||
``` | ||
</TabItem> | ||
|
||
<TabItem value="getQuote" label="getQuote helper"> | ||
```ts reference showGithubLink | ||
https://github.com/NillionNetwork/scaffold-nillion/blob/main/packages/nextjs/utils/nillion/compute.ts | ||
https://github.com/NillionNetwork/cra-nillion/blob/main/src/nillion/helpers/getQuote.ts | ||
``` | ||
</TabItem> | ||
</Tabs> | ||
|
||
|
||
## Pay to Compute and get Payment Receipt | ||
|
||
<Tabs> | ||
|
||
<TabItem value="receipt" label="Payment receipt" default> | ||
```ts reference showGithubLink | ||
https://github.com/NillionNetwork/cra-nillion/blob/main/src/nillion/components/ComputeForm.tsx#L74-L81 | ||
``` | ||
</TabItem> | ||
|
||
<TabItem value="helpers" label="helper functions"> | ||
```ts reference showGithubLink | ||
https://github.com/NillionNetwork/cra-nillion/blob/main/src/nillion/helpers/nillion.ts#L24-L71 | ||
``` | ||
</TabItem> | ||
|
||
</Tabs> | ||
|
||
## Compute | ||
|
||
<Tabs> | ||
<TabItem value="compute" label="compute" default> | ||
```ts reference showGithubLink | ||
https://github.com/NillionNetwork/cra-nillion/blob/main/src/nillion/components/ComputeForm.tsx#L85-L94 | ||
``` | ||
</TabItem> | ||
|
||
<TabItem value="helpers" label="computeProgram helper"> | ||
```ts reference showGithubLink | ||
https://github.com/NillionNetwork/cra-nillion/blob/main/src/nillion/helpers/compute.ts | ||
``` | ||
</TabItem> | ||
|
||
</Tabs> | ||
|
||
|
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
This file was deleted.
Oops, something went wrong.
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
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
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
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
Oops, something went wrong.