Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sgxwallet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董子豪
sgxwallet
Commits
636454cf
Unverified
Commit
636454cf
authored
Apr 15, 2021
by
Oleh Nikolaiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update docs
parent
0b2a4cf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
healthchecks.md
docs/healthchecks.md
+6
-6
No files found.
docs/healthchecks.md
View file @
636454cf
...
...
@@ -10,11 +10,11 @@
To verify JSON-RPC server inside SGXWallet is up running execute one of the following commands:
```
bash
curl
--cert
PATH_TO_CERTS/file.crt
--key
PATH_TO_CERTS/file.key
-X
POST
--data
'{"jsonrpc":"2.0","id":1,"method":"getServerStatus","params":{}}'
-H
'content-type:application/json;'
YOUR_SGX_SERVER_URL
-k
curl
--cert
<PATH_TO_CERTS>/file.crt
--key
<PATH_TO_CERTS>/file.key
-X
POST
--data
'{"jsonrpc":"2.0","id":1,"method":"getServerStatus","params":{}}'
-H
'content-type:application/json;'
<YOUR_SGX_SERVER_URL>
-k
```
```
bash
curl
--cert
PATH_TO_CERTS/file.crt
--key
PATH_TO_CERTS/file.key
-X
POST
--data
'{"jsonrpc":"2.0","id":2,"method":"getServerVersion","params":{}}'
-H
'content-type:application/json;'
YOUR_SGX_SERVER_URL
-k
curl
--cert
<PATH_TO_CERTS>/file.crt
--key
<PATH_TO_CERTS>/file.key
-X
POST
--data
'{"jsonrpc":"2.0","id":2,"method":"getServerVersion","params":{}}'
-H
'content-type:application/json;'
<YOUR_SGX_SERVER_URL>
-k
```
If server does not respond or response contains error message than you should restart your SGXWallet.
...
...
@@ -25,20 +25,20 @@ To verify Secure Enclave part of SGXWallet is configured and initialized in a pr
1.
```
bash
curl
--cert
PATH_TO_CERTS/file.crt
--key
PATH_TO_CERTS/file.key
-X
POST
--data
'{"jsonrpc":"2.0","id":3,"method":"importBLSKeyShare","params":{"keyShare":"0xe632f7fde2c90a073ec43eaa90dca7b82476bf28815450a11191484934b9c3f", "keyShareName":"BLS_KEY:SCHAIN_ID:123456789:NODE_ID:0:DKG_ID:0"}}'
-H
'content-type:application/json;'
YOUR_SGX_SERVER_URL
-k
curl
--cert
<PATH_TO_CERTS>/file.crt
--key
<PATH_TO_CERTS>/file.key
-X
POST
--data
'{"jsonrpc":"2.0","id":3,"method":"importBLSKeyShare","params":{"keyShare":"0xe632f7fde2c90a073ec43eaa90dca7b82476bf28815450a11191484934b9c3f", "keyShareName":"BLS_KEY:SCHAIN_ID:123456789:NODE_ID:0:DKG_ID:0"}}'
-H
'content-type:application/json;'
<YOUR_SGX_SERVER_URL>
-k
```
```
bash
curl
--cert
PATH_TO_CERTS/file.crt
--key
PATH_TO_CERTS/file.key
-X
POST
--data
'{"jsonrpc":"2.0","id":4,"method":"blsSignMessageHash","params":{"keyShareName":"BLS_KEY:SCHAIN_ID:123456789:NODE_ID:0:DKG_ID:0", "t":1, "n":1, "messageHash":"09c6137b97cdf159b9950f1492ee059d1e2b10eaf7d51f3a97d61f2eee2e81db"}}'
-H
'content-type:application/json;'
YOUR_SGX_SERVER_URL
-k
curl
--cert
<PATH_TO_CERTS>/file.crt
--key
<PATH_TO_CERTS>/file.key
-X
POST
--data
'{"jsonrpc":"2.0","id":4,"method":"blsSignMessageHash","params":{"keyShareName":"BLS_KEY:SCHAIN_ID:123456789:NODE_ID:0:DKG_ID:0", "t":1, "n":1, "messageHash":"09c6137b97cdf159b9950f1492ee059d1e2b10eaf7d51f3a97d61f2eee2e81db"}}'
-H
'content-type:application/json;'
<YOUR_SGX_SERVER_URL>
-k
```
2.
```
bash
curl
--cert
PATH_TO_CERTS/file.crt
--key
PATH_TO_CERTS/file.key
-X
POST
--data
'{"jsonrpc":"2.0","id":5,"method":"importECDSAKey","params":{"key":"0xe632f7fde2c90a073ec43eaa90dca7b82476bf28815450a11191484934b9c3f", "keyName":"NEK:abcdef"}}'
-H
'content-type:application/json;'
YOUR_SGX_SERVER_URL
-k
curl
--cert
<PATH_TO_CERTS>/file.crt
--key
<PATH_TO_CERTS>/file.key
-X
POST
--data
'{"jsonrpc":"2.0","id":5,"method":"importECDSAKey","params":{"key":"0xe632f7fde2c90a073ec43eaa90dca7b82476bf28815450a11191484934b9c3f", "keyName":"NEK:abcdef"}}'
-H
'content-type:application/json;'
<YOUR_SGX_SERVER_URL>
-k
```
```
bash
curl
--cert
PATH_TO_CERTS/file.crt
--key
PATH_TO_CERTS/file.key
-X
POST
--data
'{"jsonrpc":"2.0","id":6,"method":"ecdsaSignMessageHash","params":{"keyName":"NEK:abcdef", "base":16, "messageHash":"09c6137b97cdf159b9950f1492ee059d1e2b10eaf7d51f3a97d61f2eee2e81db"}}'
-H
'content-type:application/json;'
YOUR_SGX_SERVER_URL
-k
curl
--cert
<PATH_TO_CERTS>/file.crt
--key
<PATH_TO_CERTS>/file.key
-X
POST
--data
'{"jsonrpc":"2.0","id":6,"method":"ecdsaSignMessageHash","params":{"keyName":"NEK:abcdef", "base":16, "messageHash":"09c6137b97cdf159b9950f1492ee059d1e2b10eaf7d51f3a97d61f2eee2e81db"}}'
-H
'content-type:application/json;'
<YOUR_SGX_SERVER_URL>
-k
```
Any error during one of the calls means that SGXWallet is misconfigured and will not work as you expect. Please try to run SGXWallet in backup mode.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment