2019-01-25 00:48:24 +00:00
Finnegan's Wake Demo
====================
.. figure :: https://cdn-images-1.medium.com/max/600/0*b42NPOnflrY07rEf.jpg
:width: 100%
Overview
--------
.. important ::
2019-01-30 11:26:20 +00:00
This demo requires connecting to a running network. By default the demo is hardcoded to connect to the :doc: `local demo fleet </demos/local_fleet_demo>` .
2019-01-25 00:48:24 +00:00
This demo is an example of a NuCypher decentralized network allowing Alice to share
2019-01-28 21:10:12 +00:00
data with Bob using proxy re-encryption. This enables the private sharing of data across public consensus networks,
without revealing data keys to intermediary entities.
2019-01-25 00:48:24 +00:00
+------+-----------+----------------------------------------------------------------------------------------------+
| Step | Character | Operation |
+======+===========+==============================================================================================+
2019-01-28 23:40:50 +00:00
| 1 | Alice | Alice sets a Policy on the NuCypher network (2-of-3) and grants access to Bob |
2019-01-25 00:48:24 +00:00
+------+-----------+----------------------------------------------------------------------------------------------+
2019-09-27 15:07:21 +00:00
| 2 | Alice | Label and Alice's public key provided to Bob |
2019-01-25 00:48:24 +00:00
+------+-----------+----------------------------------------------------------------------------------------------+
2019-01-26 01:18:02 +00:00
| 3 | Bob | Bob joins the policy with Label and Alice's public key |
2019-01-25 00:48:24 +00:00
+------+-----------+----------------------------------------------------------------------------------------------+
2019-02-16 17:54:30 +00:00
| 4 | Enrico | A data source created for the policy |
2019-01-25 00:48:24 +00:00
+------+-----------+----------------------------------------------------------------------------------------------+
2019-02-16 17:54:30 +00:00
| 5 | Enrico | Each plaintext message gets encrypted by Enrico, which results in a messageKit |
2019-01-25 00:48:24 +00:00
+------+-----------+----------------------------------------------------------------------------------------------+
2019-02-16 17:54:30 +00:00
| 6 | Bob | Bob receives and reconstructs Enrico from the Policy's public key and Enrico's public key |
2019-01-25 00:48:24 +00:00
+------+-----------+----------------------------------------------------------------------------------------------+
2019-02-16 17:54:30 +00:00
| 7 | Bob | Bob retrieves the original message from Enrico and MessageKit |
2019-01-25 00:48:24 +00:00
+------+-----------+----------------------------------------------------------------------------------------------+
2019-08-19 09:39:24 +00:00
Install NuCypher
2019-01-25 00:48:24 +00:00
----------------
2019-02-16 17:54:30 +00:00
Acquire the `` nucypher `` application code and install the dependencies.
2019-01-30 11:26:20 +00:00
For a full installation guide see the :doc: `/guides/installation_guide` .
2019-01-25 00:48:24 +00:00
Download the Book Text
----------------------
2019-01-30 11:26:20 +00:00
For your convenience we have provided a bash script to acquire the "Finnegan's Wake" text. However,
2019-01-25 00:48:24 +00:00
feel free to use any text of your choice, as long you you edit the demo code accordingly.
2019-01-30 11:26:20 +00:00
To run the script:
.. code ::
(nucypher)$ ./download_finnegans_wake.sh
2019-01-25 00:48:24 +00:00
2019-01-26 01:56:14 +00:00
Run the Demo
2019-01-25 00:48:24 +00:00
---------------
2019-01-30 11:26:20 +00:00
After acquiring a text file to re-encrypt, execute the demo by running:
.. code ::
(nucypher)$ python3 finnegans-wake-demo.py