Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.13 KB

README.md

File metadata and controls

34 lines (25 loc) · 1.13 KB

Rust Sample Client

Pre running Steps

  1. Setup and run senz-switch.
  2. Now setup and Run senz-web client both frontend and backend.
  3. Now click on your profile icon and then click on My signature to get your signature.
  4. In order to communicate between 2 devices you need to add both the devices in the same project. So if not added then add 2 devices in any of your projects.
  5. Now in main.rs under rust-sender/src folder and in main.rs file under rust-receiver/src folder replace the signature and pubkey with your signature and pubkey respectively. Also make sure that sender and reciever pubkeys are different.

Instructions

  1. Install requirements

    Rust version 1.33.0
    Cargo version 1.33.0

    Dependencies requirements
    sodiumoxide = "0.2.1"
    base64 = "0.10.1"
    chrono = "0.4"

  2. Run receiver device

    cd rust-receiver
    cargo run
  3. Run sender device

    cd rust-sender
    cargo run