---
# System prepended metadata

title: Untitled

---

### Rosetta 入門

#### Rosetta とは

#### Rosetta 簡単テスト

##### Rosetta 環境セットアップ、Ubuntuで、MACはまだサポートしていないです

###### Ubuntu setup, python etc
    - Skip (https://github.com/LatticeX-Foundation/Rosetta)

###### Rosetta Source code　から環境準備
    > cd ~/github
    > git clone git@github.com:LatticeX-Foundation/Rosetta.git
    > cd Rosetta
    > ./rosetta.sh --enable-protocol-mpc-securenn --enable-protocol-mpc-helix --enable-protocol-zk
    > ./rosetta.sh install

###### Sample code 確認
    > cd ~/github/Rosetta/example/
    > ls -ltr */* | grep py
    
###### ZKP test
    > cd ~
    > mkdir WorkSpace/zkp; cd WorkSpace/zkp
    > cp ~/gitbut/Rosetta/example/tutorials/code/rosetta_demo_zkp.py .
    > cp ~/github/Rosetta/example/tutorials/code/CONFIG_ZKP.json .
    ....
    > mkdir ~/WorkSpace/zkp/P0; cd ~/WorkSpace/zkp/P0; cp ../* .
    > python3 rosetta_demo_zkp.py --parth_id=0
    ...
    (swith to another terminal, or on another PC)
    > mkdir ~/WorkSpace/zkp/P0; cd ~/WorkSpace/zkp/P0; cp ../* .
    > python3 rosetta_demo_zkp.py --parth_id=1
    
###### Linear Regression
    > #### pure tensorflow
    > mkdir ~/WorkSpace/ML/linearRegression; cd ~/WorkSpace/ML/linearRegression
    > cp ~/github/Rosetta/example/tutorials/code/tf-linear-regression*.py .
    > cp ~/github/Rosetta/example/tutorials/code/util.py .
    > cp -r ~/github/Rosetta/example/tutorial/dsets .
    ...
    > python3 tf-linear-regression.py
    > ...
    
    > #### Rosetta MPC SecureNN version
    > mkdir ~/WorkSpace/ML/rttLinearReg; cd ~/WorkSpace/ML/rttLinearReg
    > cp ~/github/Rosetta/example/tutorials/code/rtt-linear-regression*.py .
    > cp ~/github/Rosetta/example/tutorials/code/util.py .
    > cp ~/github/Rosetta/example/tutorials/code/CONFIG.json .
    > cp -r ~/github/Rosetta/example/tutorial/dsets .
    ...
    > python3 rtt-linear-regression.py --party_id=0
    > ...
    > python3 rtt-linear-regression.py --party_id=1
    > ...
    > python3 rtt-linear-regression.py --party_id=2
    > ...
    > 

### 付属資料

##### MPC 入門

##### ZKP 入門