You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _QUICKSTART.md
+63-8Lines changed: 63 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,62 @@ It may be used to create a script in future.
7
7
It assumes that the Ethereum Local Network and Secret Local Network are being run on a remote machine running Linux, since macOS may not support SGX.
8
8
The guide uses `scp` to copy file changes that are being made on a local machine across to the remote machine. Alternatively make the changes directly on the remote server using `vim` or similar, or otheriwse configure your code editor like Visual Studio Code to do so.
9
9
10
-
### Local Machine
10
+
### Super Quick Start
11
+
12
+
* Clone https://github.com/svub/nunya into `~/nunya`
13
+
* Fetch latest from branch 'submit-pubkey'
14
+
```
15
+
git fetch origin submit-pubkey:submit-pubkey
16
+
git checkout submit-pubkey
17
+
```
18
+
* Clone https://github.com/ltfschoen/SecretPath into `~/ltfschoen`
19
+
* Fetch latest from branch 'nunya'
20
+
```
21
+
git fetch origin nunya:nunya
22
+
git checkout nunya
23
+
```
24
+
* Run the following on a remote server:
25
+
```
26
+
./scripts/run.sh
27
+
```
28
+
* Wait for it to all load
29
+
* Run
30
+
```
31
+
cd ~/nunya && nvm use && yarn run secret:submitRequestValue
32
+
```
33
+
OR
34
+
```
35
+
cd ~/nunya && nvm use && yarn run secret:submitRetrievePubkey
36
+
```
37
+
* Watch the logs
38
+
* Ethereum Local Node
39
+
```
40
+
journalctl -u ethlocal.service -f
41
+
```
42
+
* Optionally store in a file:
43
+
```
44
+
journalctl -u ethlocal.service -f | tee ~/nunya/ethlocal.service.log
45
+
```
46
+
* Secret Local Node
47
+
```
48
+
docker logs -f --tail 10 secretdev
49
+
```
50
+
* Optionally store in a file:
51
+
```
52
+
docker logs -f secretdev | tee ~/nunya/secret-docker.log
53
+
```
54
+
* Relayer
55
+
```
56
+
journalctl -u relayer.service -f
57
+
```
58
+
* Optionally store in a file:
59
+
```
60
+
journalctl -u relayer.service -f | tee ~/nunya/relayer.service.log
INFO [enclave_contract_engine::wasm3] debug_print: "msg: PostExecutionMsg {\n result: \"eyJfcmVxdWVzdF9pZCI6eyJuZXR3b3JrIjoiMzEzMzciLCJ0YXNrX2lkIjoiNCJ9LCJfa2V5IjpbMiwyNTEsMTg4LDE0MywxNjMsMTExLDM0LDE1OCwxNjcsODIsMTE1LDE4OSwyNSwyMzksMTcyLDEyNiw4LDY3LDIzMCwxMzgsNTAsNzcsODEsMTEzLDEyMiwyMDEsNzYsMjE5LDI0Myw1NSwxMzQsMjE0LDg2XSwiX2NvZGUiOjAsIl9udW55YV9idXNpbmVzc19jb250cmFjdF9hZGRyZXNzIjoiMHhBRkZGMzExODIxQzNGM0FGODYzQzcxMDNCQjE3QkRDMUJhMDQ2MDNEIn0=\"
248
303
```
249
304
250
-
### Notes
305
+
####Notes
251
306
252
307
* Note: Restart all nodes and re-do steps in Terminal Tab 2 if any of the changes are made since it's faster, otherwise the CODE_ID and CONTRACT_ADDRESS may change requiring updating the config file between uploading and instantiation, which is annoying.
0 commit comments