nucypher/examples/finnegans_wake_demo
Piotr Roslaniec f72008a8f1 Make provider_uri optional for Bob 2021-04-08 10:16:56 +02:00
..
README.md Lynx-based Finnegans's wake demo documentation mentions. 2021-02-13 18:35:31 -08:00
finnegans-wake-demo-federated.py Further refine and lighten finnegan's wake for lynx, use implcit default seednodes.. 2021-02-13 18:39:36 -08:00
finnegans-wake-demo-testnet.py Make provider_uri optional for Bob 2021-04-08 10:16:56 +02:00
finnegans-wake-excerpt.txt Respond to RFCs in PR #2560 2021-02-13 18:35:31 -08:00

README.md

Finnegan's Wake Demo

This illustrates Alice sharing data with Bob over the NuCypher network using proxy re-encryption, without revealing private keys to intermediary entities.

  1. Alice sets a Policy on the NuCypher network (2/3) and grants access to Bob
  2. Label and Alice's public key provided to Bob
  3. Bob joins the policy by Label and Alice's public key
  4. Enrico created for the policy
  5. Each plaintext message gets encapsulated through the Enrico to messageKit
  6. Bob receives and reconstructs the Enrico from Policy public key and Enrico public key
  7. Bob retrieves the original message from Enrico and MessageKit

There are two version of the example, one federated example using a local network and another example using the nucypher application development tesnet: Lynx.

Federated Demo

First run the local federated network: python ../run_demo_ursula_fleet.py

Then run the demo: python finnegans-wake-demo-federated.py

Testnet Demo

First, configure the demo. Be sure tat alice's address has some Goerli ETH.

export DEMO_PROVIDER_URI=<GOERLI RPC ENDPOINT>
export DEMO_ALICE_ETH_ADDRESS=<ETH ADDRESS>
export DEMO_SIGNER_URI=keystore://<PATH TO KEYSTORE>

Then run the demo: python finnegans-wake-demo-testnet.py