-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add auditor client capability (Node.js) (#39)
- Loading branch information
Showing
11 changed files
with
1,850 additions
and
6,011 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,10 +39,10 @@ const clientService = new ClientService(clientProperties); | |
``` | ||
|
||
The `clientProperties` argument is mandatory for the constructor. | ||
This is a properties example that a user `[email protected]` would use to try to connect to the server `scalardl.example.com:50051` of the Scalar DL network. | ||
This is a properties example that a user `[email protected]` would use to try to connect to the server `scalardl-server.example.com:50051` of the Scalar DL network. | ||
```javascript | ||
{ | ||
'scalar.dl.client.server.host': 'scalardl.example.com', | ||
'scalar.dl.client.server.host': 'scalardl-server.example.com', | ||
'scalar.dl.client.server.port': 50051, | ||
'scalar.dl.client.server.privileged_port': 50052, | ||
'scalar.dl.client.cert_holder_id': '[email protected]', | ||
|
@@ -56,6 +56,17 @@ This is a properties example that a user `[email protected]` would use to try to c | |
} | ||
``` | ||
|
||
If the auditor capability is enabled on the Scalar DL network, specify additional properties like the following example. In this example, the client interacts with the auditor `scalardl-auditor.example.com` and detects Byzantine faults including data tampering when executing contracts. | ||
|
||
```javascript | ||
{ | ||
'scalar.dl.client.auditor.enabled': true, | ||
'scalar.dl.client.auditor.host': 'scalardl-auditor.example.com', | ||
'scalar.dl.client.auditor.port': 40051, | ||
'scalar.dl.client.auditor.privileged_port': 40052, | ||
} | ||
``` | ||
|
||
In what follows assume that we have a clientService instance. | ||
|
||
### Register the certificate | ||
|
Oops, something went wrong.