Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

TEE end to end integration, work in progress #13

Open
wants to merge 57 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
6608d14
feat: add ABI for DataRegistryImplementation contract
volod-vana Aug 19, 2024
36d32a4
feat: add ABI for TeePoolImplementation contract
volod-vana Aug 19, 2024
25d76cc
feat: work in progress
volod-vana Aug 19, 2024
96f9a56
feat: add data registry and tee poll contract addresses to the contracts
volod-vana Aug 20, 2024
592b765
feat: add dataRegistryContract and teePoolContract addresses to config
volod-vana Aug 20, 2024
a1735b0
feat: work in progress
volod-vana Aug 20, 2024
7c03214
feat: work in progress
volod-vana Aug 20, 2024
11b52e7
feat: work in progress
volod-vana Aug 20, 2024
7e21a2f
feat: work in progress
volod-vana Aug 20, 2024
5cd45b5
feat: work in progress, document the full flow
volod-vana Aug 21, 2024
d65f6fe
feat: work in progress
volod-vana Aug 21, 2024
a3305a2
feat: work in progress
volod-vana Aug 21, 2024
16fe448
fix: renamed method from requestClaim -> validateFile to match DLP li…
volod-vana Aug 22, 2024
fda598c
fix: renamed method from validateFile -> addFile to match DLP light s…
volod-vana Aug 22, 2024
cf4c157
Add RunProof logic
Kahtaf Sep 15, 2024
9e37e30
feat: update contract addresses
volod-vana Sep 27, 2024
3dbb846
feat: update proof_url
volod-vana Sep 27, 2024
3a5934f
feat: refactor to propagate job id to RunProof, work in progress
volod-vana Sep 30, 2024
d6ebe5f
feat: update proof to latest version to add metadata field to result
volod-vana Sep 30, 2024
139ba64
feat: add secrets and nonce
volod-vana Sep 30, 2024
2e84f00
feat: work in progress
volod-vana Oct 1, 2024
b22aca5
feat: update ENV example
volod-vana Oct 2, 2024
b976c51
feat: cleanup, remove unused components
volod-vana Oct 2, 2024
6cd6f66
feat: update homepage
volod-vana Oct 2, 2024
54dc82a
feat: remove redundant redirect to the claim page
volod-vana Oct 2, 2024
01716d2
feat: move component
volod-vana Oct 2, 2024
b6fca8f
feat: remove network switch button
volod-vana Oct 2, 2024
e48e6a9
feat: update hook, work in progress
volod-vana Oct 2, 2024
59ab100
feat: refactoring, move chaild components from claim and claim/upload…
volod-vana Oct 2, 2024
aa41403
feat: simplify config
volod-vana Oct 3, 2024
802a7b6
feat: simplify network store
volod-vana Oct 3, 2024
98790ad
feat: support previous changes to config
volod-vana Oct 3, 2024
565405b
feat: work in progress
volod-vana Oct 3, 2024
a4724fd
feat: update ABI
volod-vana Oct 4, 2024
529e44c
feat: update flow to use one call for addFile with permissions to dat…
volod-vana Oct 4, 2024
1b9831e
feat: update ABI
volod-vana Oct 5, 2024
69e8e36
fix: tee fees WEI vs ETH
volod-vana Oct 5, 2024
db4ecb6
feat: refactoring for event listeners
volod-vana Oct 5, 2024
93b2d2d
fix: etag
volod-vana Oct 5, 2024
e896bcf
feat: update ABI
volod-vana Oct 5, 2024
5cd034f
feat: work in progress
volod-vana Oct 5, 2024
8d3cb03
feat: change success message
volod-vana Oct 5, 2024
90f0c34
feat: update ABI
volod-vana Oct 9, 2024
5baacc2
feat: Refactor TEE job handling and add new job query functions
volod-vana Oct 10, 2024
85ec63f
feat: update .env.example
volod-vana Oct 10, 2024
705d931
feat: encrypt/decrypt using public and private keys
volod-vana Oct 11, 2024
b5ff2de
feat: cleanup
volod-vana Oct 11, 2024
96bcefd
feat: update dependencies
volod-vana Oct 11, 2024
8361843
feat: python example of encrypted key decryption
volod-vana Oct 15, 2024
a20b8cd
feat: update dependencies
volod-vana Oct 15, 2024
85df477
feat: cleanup
volod-vana Oct 15, 2024
b43b8c8
feat: cleanup
volod-vana Oct 15, 2024
f286913
feat: types
volod-vana Oct 16, 2024
7854093
feat: cleanup
volod-vana Oct 16, 2024
e63a448
feat: types
volod-vana Oct 16, 2024
178cbb2
feat: cleanup
volod-vana Oct 16, 2024
864e73c
feat: add example archive link
volod-vana Oct 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Network information
NEXT_PUBLIC_CHAIN_ID="14801"
NEXT_PUBLIC_CHAIN_NAME="Vana Satori Testnet"
NEXT_PUBLIC_CHAIN_ID="14800"
NEXT_PUBLIC_CHAIN_NAME="Vana Moksha Testnet"
NEXT_PUBLIC_CURRENCY="VANA"
NEXT_PUBLIC_NETWORK="satori"
NEXT_PUBLIC_RPC_URL="https://rpc.satori.vana.org"
NEXT_PUBLIC_EXPLORER_URL="https://satori.vanascan.io"
NEXT_PUBLIC_RPC_URL="https://rpc.moksha.vana.org"
NEXT_PUBLIC_EXPLORER_URL="https://moksha.vanascan.io"

# OAuth client ID for interacting with the Dropbox API.
# To create your own, go to: https://www.dropbox.com/developers/documentation/http/documentation
Expand All @@ -15,11 +15,9 @@ NEXT_PUBLIC_DROPBOX_CALLBACK_URL=http://localhost:3000/auth
# To create your own, go to: https://developers.google.com/identity/oauth2/web/guides/get-google-api-clientid
NEXT_PUBLIC_GOOGLE_DRIVE_CLIENT_ID=432753364585-8qg4oko082olompd6s0vedgjldd19c5f.apps.googleusercontent.com

# Smart contract addresses for the Satori and Moksha testnets. These are the default values and can be overridden in the UI.
NEXT_PUBLIC_SMART_CONTRACT_ADDRESS_SATORI_TESTNET=0xa0519f5ADc4e82729b21Ef1586d397260D9B9E45
NEXT_PUBLIC_SMART_CONTRACT_ADDRESS_MOKSHA_TESTNET=0xee4e3Fd107BE4097718B8aACFA3a8d2d9349C9a5
# DLP Smart contract addresses for the Satori and Moksha testnets. These are the default values and can be overridden in the UI.
NEXT_PUBLIC_SMART_CONTRACT_ADDRESS_SATORI_TESTNET=0x3AdCbED837068CA6505A4c99e552B3b6709113c3
NEXT_PUBLIC_SMART_CONTRACT_ADDRESS_MOKSHA_TESTNET=0x0D1C88bAf92Db7A8B18c9D078A450d9ff4dEe10E

# Public key used for encrypting the symmetric key used to encrypt a user's file.
# This is the default value and can be overridden in the UI. However, the DLP validator must have the corresponding private key to decrypt it and retreive the symmetric key back to decrypt the user's file.
# To generate a new keypair, follow the instructions in keys.md
NEXT_PUBLIC_FILE_ENCRYPTION_PUBLIC_KEY_BASE64=LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCgptUUdOQkdZMUp3RUJEQUM5RkoyaWpxZzdrcHVKb0NpeEZKa29CUDZRUE1VRjlEcUprTjNzTGxxc1RXU2IxSXQrCnVlT20wMHUvY2l4RUM3VkYrdjZDc0ErblRPaTNBYTdodHZwcGxRSWNHall5aUFZZXNOaW5XQmdPVHBFa05yNVEKOTAvejNCQUV0OUlZamVZOFB4TnUwZGFtY2JDOEtWdVNSMkF1M2ZXdkpNWjhXWTVmcXZ4SzA3MDh5bHk3b3JZMgpxdXJRT0RmcWJPNkR0SHpDUkVoQ08yNWlBSGVGdldOd0JtMzZtUE1pTCtCWlFBT1hhVENhU3owZjRPdml6SUdaCnBRSWZVMWhYa1ZEdWw5Mk9WZHkyM1kxUGlVbEZJSnd3eGNSNllYTjE5dU9wSzlFUFNPTHJoZXY5ZHlRdGhqUzMKcXJVYVo4MnVyKysxcFlPMWNTMlNuRFdiejNKRkovRVMwOXppandSeWM1SzFRSnFEcXhaejZMam5BQ2FJZUhQYQpkR3JJYW5kM1N5akZWUEs2SGVzUDVVcWFrYk5DZVBCOTc2U1R3dkUveVk1ajVjWnJ0bjdpRUEwK3BMQU5zeHB5Cm8xUnNQTmRKUFlXZmpRcUJ1cTJOQVlrUlcvMG13MlpQMXhucVRLUWl2cnUyQ293R0Q3U0NSMmg5bVRuWUdEU0IKS1UvYkZSQmRTSFprMUpFQUVRRUFBYlFXVm05c2IyUWdQSFp2Ykc5a1FIWmhibUV1WTI5dFBva0IwUVFUQVFnQQpPeFloQkhvRllVa1hQa25zRzgvRWYyUnJEdFZOVXdtWkJRSm1OU2NCQWhzREJRc0pDQWNDQWlJQ0JoVUtDUWdMCkF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d1KzBCY3VxLzROSDdTb3ZzV2NjeUxQOERob1JDMDRROTlXaXVGeHhrTzdXMGZTUFcKVys3Ukx4N0E5V3ZXOGJiWFVzTVIzejRZTEFvWHpmWExiSGhkUWZnZTd3dTlRMWQyT1FSMnpnb2lnTXNxNklVKwpNMVJvVlJBPQo9N2pWYgotLS0tLUVORCBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCg==
NEXT_PUBLIC_SMART_CONTRACT_ADDRESS_DATA_REGISTRY=0xEA882bb75C54DE9A08bC46b46c396727B4BFe9a5
NEXT_PUBLIC_SMART_CONTRACT_ADDRESS_TEE_POOL=0xF084Ca24B4E29Aa843898e0B12c465fAFD089965
308 changes: 0 additions & 308 deletions app/claim/upload/page.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions app/components/layout/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import { useDisclosure } from "@mantine/hooks";
import Link from "next/link";
import { usePathname } from "next/navigation";
import { useEffect } from "react";
import { SettingsButton } from "./settings-button";

const links = [
{ title: "Claim", href: "/claim" },
Expand Down Expand Up @@ -188,7 +187,6 @@ export const Layout: React.FC<{ children: React.ReactNode }> = ({
Connect
</Button>
)}
<SettingsButton />
</Group>
</Group>
</Group>
Expand Down
Loading