Skip to content

Commit

Permalink
updated readme and instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
mujtabaidrees94 committed Feb 9, 2021
1 parent 4d1cb5c commit f3eb1ec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ https://creativecommons.org/licenses/by/4.0/
-->
# Building Hyperledger Avalon With SCONE Workers

- Branch **main** represents the code of workers in SCONE Secure Hw Mode with public CAS run by scontain team.
- Branch **main** represents 'public-cas-fs-protected' i.e. the code of workers in SCONE Secure Hw Mode with public CAS run by scontain team.
- Branch **no-cas-fs-unprotected** represents the code of workers (1) without SCONE (2) SCONE Sim Mode (3) SCONE Unsecure Hw Mode
- Branch **private-cas-fs-protected** represents the code of workers in SCONE Secure Hw Mode with private CAS in the cluster.

_CAS image is not available in SCONE free tier, hence the user must upgrade to Standard or Business edition if private CAS is desired in the cluster._
_**Note:** CAS image is not available in SCONE free tier, hence the user must upgrade to Standard or Business edition if private CAS is desired in the cluster._

## Install and Access SCONE

Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,12 @@ For demo of the applications running with SCONE workers, see

## Building

- Branch **main** represents the code of workers in SCONE Secure Hw Mode with public CAS run by scontain team.
- Branch **main** represents 'public-cas-fs-protected' i.e. the code of workers in SCONE Secure Hw Mode with public CAS run by scontain team.
- Branch **no-cas-fs-unprotected** represents the code of workers (1) without SCONE (2) SCONE Sim Mode (3) SCONE Unsecure Hw Mode
- Branch **private-cas-fs-protected** represents the code of workers in SCONE Secure Hw Mode with private CAS in the cluster.

_CAS image is not available in SCONE free tier, hence the user must upgrade to Standard or Business edition if private CAS is desired in the cluster._
_**Note:** CAS image is not available in SCONE free tier, hence the user must upgrade to Standard or Business edition if private CAS is desired in the cluster._


To build Hyperledger Avalon with SCONE, follow instructions in the
[build document](BUILD.md).
Expand Down
8 changes: 4 additions & 4 deletions avalon-scone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ Developers can add any python based workload that would execute in scone based t

- Secure Discounted Transaction: It is a demo of real-world use case of coins transfer from one wallet to another wallet. Since the execution of smart contracts is not private and the code written in smart contract is also visible to everybody, it is not possible to provide variable discounts to different customers without the other customers knowing about it. But in trusted execution the discount can be provided with each transaction to each customer without anyone knowing about it, other than the two parties involved. This workload can be integrated with smart contracts using blockchain connectors to enable trusted private secure transactions.

_**Note:** External apps like **Openvino** and **Hospital app** are only available in 'private-cas-fs-protected' branch as they need private CAS inside the cluster to complete their workflow_

## Building and Running the workers for testing (1) without SCONE/Intel SGX (2) SCONE SIM Mode (3) Unsecure Hardware Mode

### RUN without Intel SGX
Expand Down Expand Up @@ -113,10 +115,8 @@ Developers can add any python based workload that would execute in scone based t

`./generic_client.py --uri "http://avalon-listener:1947" -w "scone-worker-1" --workload_id "secure-transaction" --in_data "100 100 50 50" -o`

This input format is (sender_balance, receiver_balance, transfer_amount, discount) If everything goes fine, then you should see the updated balances of sender and receiver.

- Openvino and Hospital apps are only available in hardware mode as they need CAS interaction.

The input format is (sender_balance, receiver_balance, transfer_amount, discount) If everything goes fine, then you should see the updated balances of sender and receiver.

## Adding a new Python Workload

- Avalon Python worker supports two sample workloads: "python-hello" and "python-fib".
Expand Down

0 comments on commit f3eb1ec

Please sign in to comment.