diff --git a/docs/README.MD b/docs/README.MD index db0a110..fd18a20 100644 --- a/docs/README.MD +++ b/docs/README.MD @@ -12,32 +12,87 @@ Before proceeding, ensure you have the following installed: ## Initial Setup -1. **Clone the Repository:** - Ensure you have the latest version of the codebase. +1. Clone the Repository: -``` -git clone https://github.com/MaastrichtU-IDS/DecentralizedHealthcareBackend.git + Ensure you have the latest version of the codebase. -cd DecentralizedHealthcareBackend -``` + ``` + git clone https://github.com/MaastrichtU-IDS/DecentralizedHealthcareBackend.git + cd DecentralizedHealthcareBackend + ``` 2. Install Sphinx (if not already installed): -``` -pip install sphinx -``` + ``` + pip install sphinx + ``` + +3. Set Up Sphinx Directory: + + ``` + sphinx-quickstart docs + ``` + + This will create a docs directory with basic configuration files. + +4. Configure Sphinx: + + - Edit the `conf.py` file in the `docs/source` directory. Set the `sys.path` to include Django project's root directory, so Sphinx can find the modules + - Set Django settings modules in `conf.py`: + + ``` + import os + import sys + import django + + sys.path.insert(0, os.path.abspath('../../luce_vm/luce_django/luce')) + + os.environ['DJANGO_SETTINGS_MODULE'] = 'lucehome.settings' + django.setup() + ``` + +5. Create Documentation with Autodoc: -3. Navigate to the Documentation Directory: + Sphinx can automatically generate documentation from your docstrings using the autodoc extension. Enable this in your `conf.py`: -``` -cd docs -``` + ``` + extensions = ['sphinx.ext.autodoc'] + ``` + +6. add `modules` in `index.rst`: + + ``` + ================================ + + .. toctree:: + :maxdepth: 2 + :caption: Contents: + + modules + + Indices and tables + ================== + + * :ref:`genindex` + * :ref:`modindex` + * :ref:`search` + ``` ## Generating Documentation -Use `sphinx-apidoc` to automatically generate `.rst` files from the codebase. +1. Automatic .rst File Generation + + Use `sphinx-apidoc` to automatically generate `.rst` files from the codebase. Check `sphinx-apidoc --help` for more information + + ``` + # Adjust paths as necessary + sphinx-apidoc -o ./source ../luce_vm/luce_django/luce/ ../**/migrations/* ../**/tests/* ../**/utils/* ../**/lucehome/* ../**/manage.py + ``` + +2. Build the Documentation + + Generate the Documentation -``` -# Adjust paths as necessary -sphinx-apidoc -o . .. -``` + ``` + make html + ``` diff --git a/docs/build/doctrees/accounts.doctree b/docs/build/doctrees/accounts.doctree index 4e62358..2aaeda7 100644 Binary files a/docs/build/doctrees/accounts.doctree and b/docs/build/doctrees/accounts.doctree differ diff --git a/docs/build/doctrees/blockchain.doctree b/docs/build/doctrees/blockchain.doctree index 8df3615..e9f18df 100644 Binary files a/docs/build/doctrees/blockchain.doctree and b/docs/build/doctrees/blockchain.doctree differ diff --git a/docs/build/doctrees/environment.pickle b/docs/build/doctrees/environment.pickle index 9a0c94d..a7a024d 100644 Binary files a/docs/build/doctrees/environment.pickle and b/docs/build/doctrees/environment.pickle differ diff --git a/docs/build/doctrees/healthcare.doctree b/docs/build/doctrees/healthcare.doctree index 3d42933..1b47c0a 100644 Binary files a/docs/build/doctrees/healthcare.doctree and b/docs/build/doctrees/healthcare.doctree differ diff --git a/docs/build/doctrees/modules.doctree b/docs/build/doctrees/modules.doctree index 7a9a703..428316c 100644 Binary files a/docs/build/doctrees/modules.doctree and b/docs/build/doctrees/modules.doctree differ diff --git a/docs/build/doctrees/privacy.doctree b/docs/build/doctrees/privacy.doctree index 8a6bcd9..e432d90 100644 Binary files a/docs/build/doctrees/privacy.doctree and b/docs/build/doctrees/privacy.doctree differ diff --git a/docs/build/html/_sources/accounts.rst.txt b/docs/build/html/_sources/accounts.rst.txt index 46013f5..64e3712 100644 --- a/docs/build/html/_sources/accounts.rst.txt +++ b/docs/build/html/_sources/accounts.rst.txt @@ -1,15 +1,6 @@ accounts package ================ -Subpackages ------------ - -.. toctree:: - :maxdepth: 4 - - accounts.migrations - accounts.tests - Submodules ---------- diff --git a/docs/build/html/_sources/blockchain.rst.txt b/docs/build/html/_sources/blockchain.rst.txt index c921180..402a314 100644 --- a/docs/build/html/_sources/blockchain.rst.txt +++ b/docs/build/html/_sources/blockchain.rst.txt @@ -1,15 +1,6 @@ blockchain package ================== -Subpackages ------------ - -.. toctree:: - :maxdepth: 4 - - blockchain.migrations - blockchain.tests - Submodules ---------- diff --git a/docs/build/html/_sources/modules.rst.txt b/docs/build/html/_sources/modules.rst.txt index b28043e..ab337a5 100644 --- a/docs/build/html/_sources/modules.rst.txt +++ b/docs/build/html/_sources/modules.rst.txt @@ -7,7 +7,4 @@ luce accounts blockchain healthcare - lucehome - manage privacy - utils diff --git a/docs/build/html/_sources/privacy.rst.txt b/docs/build/html/_sources/privacy.rst.txt index a177a17..b9fe4ed 100644 --- a/docs/build/html/_sources/privacy.rst.txt +++ b/docs/build/html/_sources/privacy.rst.txt @@ -1,14 +1,6 @@ privacy package =============== -Subpackages ------------ - -.. toctree:: - :maxdepth: 4 - - privacy.migrations - Submodules ---------- diff --git a/docs/build/html/accounts.html b/docs/build/html/accounts.html index 9a97e1a..f97b3cb 100644 --- a/docs/build/html/accounts.html +++ b/docs/build/html/accounts.html @@ -16,7 +16,7 @@ - + @@ -36,25 +36,6 @@

accounts package

-
-

Subpackages

- -

Submodules

@@ -872,10 +853,7 @@

Navigation

  • accounts package
  • blockchain package
  • healthcare package
  • -
  • lucehome package
  • -
  • manage module
  • privacy package
  • -
  • utils package
  • @@ -886,7 +864,7 @@

    Related Topics

  • Documentation overview
  • diff --git a/docs/build/html/blockchain.html b/docs/build/html/blockchain.html index caf847d..f4b3404 100644 --- a/docs/build/html/blockchain.html +++ b/docs/build/html/blockchain.html @@ -16,8 +16,8 @@ - - + + @@ -36,29 +36,6 @@

    blockchain package

    -
    -

    Subpackages

    - -

    Submodules

    @@ -1261,10 +1238,7 @@

    Navigation

  • accounts package
  • blockchain package
  • healthcare package
  • -
  • lucehome package
  • -
  • manage module
  • privacy package
  • -
  • utils package
  • @@ -1274,8 +1248,8 @@

    Related Topics

    diff --git a/docs/build/html/genindex.html b/docs/build/html/genindex.html index b1b7d37..93bd3b8 100644 --- a/docs/build/html/genindex.html +++ b/docs/build/html/genindex.html @@ -92,20 +92,6 @@

    A

    -
  • - accounts.migrations - -
  • -
  • - accounts.migrations.0001_initial - -
  • @@ -120,25 +106,11 @@

    A

  • -
  • - accounts.tests - -
  • +
  • - blockchain.migrations - -
  • -
  • - blockchain.migrations.0001_initial - -
  • -
  • - blockchain.migrations.0002_consentcontract_research_purpose - -
  • - - @@ -310,14 +218,8 @@

    B

    C

    @@ -452,8 +336,6 @@

    D

  • (blockchain.models.ConsentContract attribute)
  • -
  • DataContractModelTestCase (class in blockchain.tests.test_DataContract) -
  • DataContractSerializer (class in healthcare.serializers)
  • DataContractSerializer.Meta (class in healthcare.serializers) @@ -470,18 +352,6 @@

    D

  • default_contract_name (privacy.models.MimicMixingServiceContract attribute)
  • -
  • dependencies (accounts.migrations.0001_initial.Migration attribute) - -
  • - - + -
  • deploy_contract_main() (in module utils.web3_scripts) +
  • deploy_dataset_contract() (healthcare.views.UploadDataView method)
  • -
  • deploy_registry() (blockchain.tests.test_DataContract.DataContractModelTestCase method) - -
  • DEPLOYMENT_COST (healthcare.serializers.ConsentContractSerializer attribute) @@ -650,8 +510,6 @@

    G

  • @@ -661,14 +519,12 @@

    G

  • get_a_new_address_with_balance() (privacy.disposable_address.DisposableAddressService method)
  • get_commitment() (blockchain.models.DataContract method) +
  • +
  • get_disposable_address() (healthcare.views.UploadDataView method)
  • get_full_name() (accounts.models.User method)
  • get_gender_display() (accounts.models.User method) -
  • -
  • get_initial_response() (in module utils.utils) -
  • -
  • get_link() (in module utils.web3_scripts)
  • get_luce_registry() (healthcare.views.UploadDataView method)
  • @@ -680,38 +536,30 @@

    G

  • get_short_name() (accounts.models.User method)
  • -
  • get_user_type_display() (accounts.models.User method) +
  • get_success_response() (healthcare.views.UploadDataView method)
  • -
  • getAllRestrictionsAndPurposes() (in module utils.web3_scripts) +
  • get_user_type_display() (accounts.models.User method)
  • GetLink (class in healthcare.views)
  • getLink() (blockchain.models.DataContract method)
  • give_clinical_research_purpose() (blockchain.models.ConsentContract method) - -
  • give_general_research_purpose() (blockchain.models.ConsentContract method) - -
  • give_HMB_research_purpose() (blockchain.models.ConsentContract method) - -
  • H

    -

    W

    diff --git a/docs/build/html/healthcare.html b/docs/build/html/healthcare.html index 8fb4e2a..08c1ba1 100644 --- a/docs/build/html/healthcare.html +++ b/docs/build/html/healthcare.html @@ -16,8 +16,8 @@ - - + + @@ -537,14 +537,24 @@

    Submodules class healthcare.views.UploadDataView(**kwargs)

    Bases: APIView

    +
    + +
    + +
    +
    +deploy_dataset_contract(datacontract)
    +
    +
    get(request, format=None)
    -
    -get_a_new_account()
    +
    +get_disposable_address(user_account, amount)
    @@ -552,6 +562,26 @@

    Submodulesget_luce_registry()

    +
    +
    +get_success_response(serializer, tx_receipts)
    +
    + +
    +
    +handle_error(user_message, log_message)
    +
    + +
    +
    +handle_smart_contracts(datacontract, link)
    +
    + +
    +
    +initialize_serializers(request)
    +
    +
    is_luce_registry_deployed()
    @@ -567,6 +597,26 @@

    Submodulespost(request, format=None)

    +
    +
    +publish_data(datacontract, link)
    +
    + +
    + +
    + +
    +
    +set_registry_address(datacontract, registry_address)
    +
    + +
    + +
    +

    @@ -598,10 +648,7 @@

    Navigation

  • accounts package
  • blockchain package
  • healthcare package
  • -
  • lucehome package
  • -
  • manage module
  • privacy package
  • -
  • utils package
  • @@ -611,8 +658,8 @@

    Related Topics

    diff --git a/docs/build/html/index.html b/docs/build/html/index.html index 35abdb8..eb5a3f5 100644 --- a/docs/build/html/index.html +++ b/docs/build/html/index.html @@ -42,10 +42,7 @@

    Welcome to LUCE’s documentation!accounts package
  • blockchain package
  • healthcare package
  • -
  • lucehome package
  • -
  • manage module
  • privacy package
  • -
  • utils package
  • diff --git a/docs/build/html/modules.html b/docs/build/html/modules.html index e215501..58a131c 100644 --- a/docs/build/html/modules.html +++ b/docs/build/html/modules.html @@ -39,21 +39,6 @@

    luce¶<

    @@ -181,10 +111,7 @@

    Navigation

  • accounts package
  • blockchain package
  • healthcare package
  • -
  • lucehome package
  • -
  • manage module
  • privacy package
  • -
  • utils package
  • diff --git a/docs/build/html/objects.inv b/docs/build/html/objects.inv index 4fe0f53..f430cb1 100644 Binary files a/docs/build/html/objects.inv and b/docs/build/html/objects.inv differ diff --git a/docs/build/html/privacy.html b/docs/build/html/privacy.html index 3e2979b..59fb1f7 100644 --- a/docs/build/html/privacy.html +++ b/docs/build/html/privacy.html @@ -16,8 +16,7 @@ - - + @@ -36,19 +35,6 @@

    privacy package

    -
    -

    Subpackages

    - -

    Submodules

    @@ -200,14 +186,45 @@

    Submodules

    privacy.snarkjs_service module

    +

    This module provides the SnarkjsService class, which interfaces with a snarkjs-based service to generate Zero-Knowledge Proofs (ZKPs).

    +

    The SnarkjsService class allows for sending a secret to a specified server endpoint and receiving a ZKP in return. It handles HTTP requests, response parsing, and error logging.

    +
    +
    Dependencies:
      +
    • requests: For making HTTP requests to the snarkjs service.

    • +
    • json: For parsing the JSON response from the service.

    • +
    • logging: For logging error messages.

    • +
    +
    +
    Example:

    service = SnarkjsService() +proof = service.generate_proof(secret=’my_secret’)

    +
    +
    -class privacy.snarkjs_service.SnarkjsService(base_url='http://localhost:8888')
    +class privacy.snarkjs_service.SnarkjsService(base_url='http://localhost:8888', endpoint='/compute_commitment')

    Bases: object

    +

    SnarkjsService provides an interface to a snarkjs-based server for generating Zero-Knowledge Proofs (ZKPs).

    +

    It sends a secret to the server and retrieves a ZKP. The class handles the details of making the HTTP request, +processing the response, and error handling. It is designed to work with a server running snarkjs that exposes +a /compute_commitment endpoint.

    +
    +
    Attributes:

    base_url (str): The base URL of the snarkjs server. Defaults to ‘http://localhost:8888’. +endpoint (str): The endpoint for computing the commitment. Defaults to ‘/compute_commitment’.

    +
    +
    Methods:
    +
    generate_proof(secret): Takes a secret, sends it to the snarkjs server, and returns the generated ZKP.

    Returns None if the server response is not successful or if an error occurs.

    +
    +
    +
    +
    Example:

    service = SnarkjsService() +proof = service.generate_proof(secret=’my_secret’)

    +
    +
    generate_proof(secret)
    -
    +

    Function to generate ZKP proof using snarkjs.

    +
    @@ -246,10 +263,7 @@

    Navigation

  • accounts package
  • blockchain package
  • healthcare package
  • -
  • lucehome package
  • -
  • manage module
  • privacy package
  • -
  • utils package
  • @@ -259,8 +273,7 @@

    Related Topics

    diff --git a/docs/build/html/py-modindex.html b/docs/build/html/py-modindex.html index 7db9f5b..faeb823 100644 --- a/docs/build/html/py-modindex.html +++ b/docs/build/html/py-modindex.html @@ -41,10 +41,7 @@

    Python Module Index

    a | b | h | - l | - m | - p | - u + p @@ -72,16 +69,6 @@

    Python Module Index

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + id="toggle-4" style="display: none" alt="-" /> - + - + - + - + - - - - - - - + - + - + - + - - - - - - - - - - - - - - - - -
        accounts.forms
        - accounts.migrations -
        - accounts.migrations.0001_initial -
        @@ -92,16 +79,6 @@

    Python Module Index

        accounts.serializers
        - accounts.tests -
        - accounts.tests.test_Registration -
        @@ -131,21 +108,6 @@

    Python Module Index

        blockchain.apps
        - blockchain.migrations -
        - blockchain.migrations.0001_initial -
        - blockchain.migrations.0002_consentcontract_research_purpose -
        @@ -156,31 +118,6 @@

    Python Module Index

        blockchain.singleton
        - blockchain.tests -
        - blockchain.tests.test_ConsentContract -
        - blockchain.tests.test_DataContract -
        - blockchain.tests.test_LuceRegistryContract -
        - blockchain.tests.test_PlonkVerifierContract -
        @@ -226,140 +163,54 @@

    Python Module Index

    healthcare.views
     
    - l
    - lucehome -
        - lucehome.settings -
        - lucehome.settings_psql -
        - lucehome.test -
        - lucehome.urls -
        - lucehome.views -
        - lucehome.wsgi -
     
    - m
    - manage -
     
    p
    privacy
        privacy.admin
        privacy.api
        privacy.apps
        privacy.disposable_address
        - privacy.migrations -
        - privacy.migrations.0001_initial -
        privacy.models
        privacy.snarkjs_service
        privacy.utils
        privacy.views
     
    - u
    - utils -
        - utils.custom_exeptions -
        - utils.data -
        - utils.utils -
        - utils.web3_scripts -
    diff --git a/docs/build/html/searchindex.js b/docs/build/html/searchindex.js index cb63a3b..4600820 100644 --- a/docs/build/html/searchindex.js +++ b/docs/build/html/searchindex.js @@ -1 +1 @@ -Search.setIndex({"docnames": ["accounts", "accounts.migrations", "accounts.tests", "blockchain", "blockchain.migrations", "blockchain.tests", "healthcare", "index", "lucehome", "manage", "modules", "privacy", "privacy.migrations", "utils", "utils.data"], "filenames": ["accounts.rst", "accounts.migrations.rst", "accounts.tests.rst", "blockchain.rst", "blockchain.migrations.rst", "blockchain.tests.rst", "healthcare.rst", "index.rst", "lucehome.rst", "manage.rst", "modules.rst", "privacy.rst", "privacy.migrations.rst", "utils.rst", "utils.data.rst"], "titles": ["accounts package", "accounts.migrations package", "accounts.tests package", "blockchain package", "blockchain.migrations package", "blockchain.tests package", "healthcare package", "Welcome to LUCE\u2019s documentation!", "lucehome package", "manage module", "luce", "privacy package", "privacy.migrations package", "utils package", "utils.data package"], "terms": {"migrat": [0, 3, 10, 11], "0001_initi": [0, 3, 10, 11], "test": [0, 3, 10], "test_registr": [0, 10], "class": [0, 1, 2, 3, 4, 5, 6, 11, 12], "useradmin": 0, "admin_sit": 0, "base": [0, 1, 2, 3, 4, 5, 6, 11, 12], "add_fieldset": 0, "none": [0, 6, 13], "wide": 0, "field": [0, 1, 3, 4, 6, 11, 12], "email": [0, 1], "first_nam": [0, 1], "last_nam": [0, 1], "password1": 0, "password2": 0, "add_form": 0, "alia": [0, 6], "useradmincreationform": 0, "fieldset": 0, "password": [0, 1], "person": 0, "info": 0, "web3": 0, "ethereum_public_kei": [0, 1], "ethereum_private_kei": [0, 1], "filter_horizont": 0, "useradminchangeform": 0, "list_displai": 0, "list_filt": 0, "properti": 0, "media": 0, "order": [0, 6], "search_field": 0, "accountsconfig": 0, "app_nam": [0, 3, 6, 11], "app_modul": [0, 3, 6, 11], "appconfig": [0, 3, 6, 11], "name": [0, 1, 3, 4, 6, 8, 11, 12, 13], "loginform": 0, "data": [0, 6, 10, 13], "file": [0, 8, 13], "auto_id": 0, "id_": 0, "s": 0, "prefix": 0, "initi": [0, 1, 4, 12], "error_class": 0, "django": [0, 1, 3, 4, 6, 8, 11, 12], "util": [0, 7, 10], "errorlist": 0, "label_suffix": 0, "empty_permit": 0, "fals": [0, 1, 3, 12], "field_ord": 0, "use_required_attribut": 0, "render": 0, "base_field": 0, "emailfield": [0, 1], "object": [0, 3, 6, 11], "charfield": [0, 1, 4, 12], "declared_field": 0, "return": [0, 6, 11], "all": 0, "requir": [0, 3, 4, 6], "widget": 0, "thi": [0, 3, 6, 8, 11], "registerform": 0, "instanc": [0, 3, 6], "modelform": 0, "meta": [0, 3, 6], "access_token": 0, "user": [0, 1, 3, 4, 6, 13], "clean_email": 0, "clean_password2": 0, "save": [0, 3], "commit": [0, 3, 4], "true": [0, 1, 4, 12], "self": 0, "otherwis": 0, "add": 0, "save_m2m": 0, "method": [0, 3, 5, 6], "which": [0, 6], "can": [0, 3], "call": 0, "after": 0, "manual": 0, "later": 0, "time": [0, 3, 6, 11], "A": [0, 3, 6, 11], "updat": [0, 3], "includ": 0, "replac": 0, "hash": 0, "displai": 0, "user_typ": [0, 1], "activ": [0, 1], "booleanfield": [0, 1, 4], "contrib": 0, "auth": 0, "readonlypasswordhashfield": 0, "typedchoicefield": 0, "clean_password": 0, "creat": [0, 3, 6], "new": [0, 11], "plu": 0, "repeat": 0, "id": [0, 1, 3, 4, 6, 11, 12], "last_login": [0, 1], "countri": [0, 1], "institut": [0, 1], "is_approv": [0, 1], "staff": [0, 1], "gender": [0, 1], "ag": [0, 1], "abstractbaseus": 0, "except": [0, 3, 11], "doesnotexist": [0, 3, 11], "objectdoesnotexist": [0, 3, 11], "multipleobjectsreturn": [0, 3, 11], "required_field": 0, "username_field": 0, "wrapper": [0, 3, 11], "defer": [0, 3, 11], "load": [0, 3, 11], "when": [0, 3, 6, 11], "valu": [0, 3, 8, 11], "read": [0, 3, 11], "from": [0, 3, 11], "first": [0, 3, 6, 11], "queri": [0, 3, 11], "execut": [0, 3, 11], "auth_token": 0, "accessor": [0, 3], "relat": [0, 3, 4], "revers": [0, 3], "side": [0, 3], "one": [0, 3], "In": [0, 3], "exampl": [0, 3], "restaur": 0, "place": 0, "onetoonefield": 0, "related_nam": [0, 3], "reverseonetoonedescriptor": 0, "consentcontract_set": [0, 3], "manag": [0, 3, 7, 10, 11], "mani": [0, 3, 6], "child": [0, 3], "parent": [0, 3], "foreignkei": [0, 3, 4], "children": [0, 3], "reversemanytoonedescriptor": [0, 3], "most": [0, 3], "implement": [0, 3, 6, 11], "deleg": [0, 3], "dynam": [0, 3], "defin": [0, 3], "built": [0, 3], "create_forward_many_to_many_manag": [0, 3], "below": [0, 3], "create_wallet": [0, 13], "datacontract_set": [0, 3], "get_full_nam": 0, "get_gender_displai": 0, "db": [0, 1, 3, 4, 11, 12], "get_short_nam": 0, "get_user_type_displai": 0, "integerfield": [0, 1, 4], "has_module_perm": 0, "app_label": [0, 1, 4, 12], "doe": [0, 3, 6], "have": [0, 6], "permiss": [0, 6], "has_perm": 0, "perm": 0, "obj": 0, "specif": [0, 6], "is_act": 0, "Is": 0, "is_admin": 0, "an": [0, 3, 6], "member": 0, "is_staff": 0, "logentry_set": 0, "luceregistrycontract_set": 0, "usermanag": 0, "arg": [0, 3, 6, 11], "kwarg": [0, 3, 6, 11], "baseusermanag": 0, "create_auth_token": 0, "create_staffus": 0, "create_superus": 0, "0x43e196c418b4b7ebf71ba534042cc8907bd39dc9": 0, "0x5714ad5f65fb27cb0d0ab914db9252dfe24cf33038a181555a7efc3dcf863ab3": 0, "superus": 0, "create_us": 0, "contract_address": [0, 3, 4, 6, 11, 12], "given": [0, 11], "argument": 0, "publicuserseri": 0, "modelseri": [0, 6], "userseri": 0, "validated_data": [0, 6], "we": [0, 6], "bit": [0, 6], "extra": [0, 6], "check": [0, 6, 11], "around": [0, 6], "provid": [0, 6, 11], "descript": [0, 3, 4, 6], "messag": [0, 6, 13], "someth": [0, 6], "goe": [0, 6], "wrong": [0, 6], "essenti": [0, 6], "just": [0, 6], "examplemodel": [0, 6], "If": [0, 6], "ar": [0, 6], "present": [0, 6], "thei": [0, 3, 6], "cannot": [0, 6], "set": [0, 3, 5, 6, 10], "until": [0, 6], "instanti": [0, 6], "case": [0, 6], "like": [0, 6], "so": [0, 6], "example_relationship": [0, 6], "pop": [0, 6], "The": [0, 3, 6], "default": [0, 6], "also": [0, 6], "handl": [0, 6], "nest": [0, 6], "relationship": [0, 6], "you": [0, 3, 6], "want": [0, 3, 6], "support": [0, 6], "writabl": [0, 6], "ll": [0, 6], "need": [0, 6], "write": [0, 6], "explicit": [0, 6], "valid": [0, 6], "obtainauthtoken": 0, "apiview": [0, 6], "get_seri": 0, "get_serializer_context": 0, "parser_class": 0, "rest_framework": [0, 6], "parser": 0, "formpars": 0, "multipartpars": 0, "jsonpars": 0, "permission_class": [0, 6], "post": [0, 6], "request": [0, 6], "renderer_class": 0, "jsonrender": 0, "serializer_class": 0, "authtokenseri": 0, "throttle_class": 0, "privateuserinfoview": 0, "get": [0, 3, 6, 11], "format": [0, 6], "isauthent": [0, 6], "publicuserinfoview": 0, "get_object": 0, "userlistview": 0, "userregistr": 0, "regist": 0, "address_get_or_cr": 0, "createwallet": 0, "userupdateview": 0, "put": 0, "depend": [1, 4, 12], "oper": [1, 4, 12], "createmodel": [1, 4, 12], "model": [1, 4, 10, 12], "bigautofield": [1, 4, 12], "datetimefield": 1, "admin": [1, 8, 10], "option": [1, 6, 12], "abstract": [1, 3, 12], "registrationtestcas": 2, "methodnam": [2, 5], "runtest": [2, 5], "testcas": [2, 5], "test_valid_registr": 2, "0002_consentcontract_research_purpos": [3, 10], "test_consentcontract": [3, 10], "test_datacontract": [3, 10], "test_luceregistrycontract": [3, 10], "test_luceregistrycontractsingleton": [], "test_plonkverifiercontract": [3, 10], "blockchainconfig": 3, "clinicalpurpos": [3, 4, 6], "use_for_decision_support": [3, 4, 6], "use_for_disease_support": [3, 4, 6], "researchpurpose_set": 3, "consentcontract": [3, 4, 6, 13], "restrict": [3, 4, 6, 13], "research_purpos": [3, 4], "deploi": [3, 6, 11, 13], "deploy_contract": 3, "get_a_new_account": [3, 6], "amount": [3, 11], "1000000000000000": 3, "0": [3, 8], "give_hmb_research_purpos": [3, 13], "estim": [3, 6, 13], "give_clinical_research_purpos": [3, 13], "give_general_research_purpos": [3, 13], "forward": 3, "via": 3, "forwardonetoonedescriptor": 3, "subclass": 3, "forwardmanytoonedescriptor": 3, "research_purpose_id": 3, "restrictions_id": 3, "retrieve_contract_own": 3, "update_data_cons": 3, "upload_data_cons": [3, 13], "user_id": [3, 6], "datacontract": [3, 4, 6, 13], "consent_contract": [3, 4, 6], "licenc": [3, 4, 6], "link": [3, 4, 13], "add_data_request": [3, 13], "access_tim": [3, 6, 13], "purpose_cod": [3, 6, 13], "checkaccess": [3, 13], "researchpurpos": [3, 4, 6, 13], "consent_contract_id": 3, "getlink": [3, 6], "get_commit": 3, "secret": [3, 11], "publish_dataset": [3, 13], "require_verifier_deploi": 3, "retreive_info": 3, "set_consent_address": [3, 13], "set_registry_address": [3, 13], "registry_address": [3, 13], "generalresearchpurpos": [3, 4, 6], "use_for_methods_develop": [3, 4, 6], "use_for_reference_or_control_materi": [3, 4, 6], "use_for_research_concerning_popul": [3, 4, 6], "use_for_research_ancestri": [3, 4, 6], "use_for_biomedical_research": [3, 4, 6], "hmbresearchpurpos": [3, 4, 6], "use_for_research_concerning_fundamental_biolog": [3, 4, 6], "use_for_research_concerning_genet": [3, 4, 6], "use_for_research_concerning_drug_develop": [3, 4, 6], "use_for_research_concerning_any_diseas": [3, 4, 6], "use_for_research_concerning_age_categori": [3, 4, 6], "use_for_research_concerning_gender_categori": [3, 4, 6], "luceregistrycontract": [3, 4, 6], "is_regist": [3, 13], "usertyp": [3, 13], "is_registered_as_request": 3, "register_provid": [3, 13], "register_request": [3, 13], "licens": [3, 13], "plonkverifiercontract": [3, 4], "address": [3, 4, 6, 11], "current": 3, "overrid": 3, "control": 3, "process": [3, 6], "force_insert": 3, "force_upd": 3, "paramet": [3, 11], "us": [3, 8], "insist": 3, "must": [3, 6], "sql": 3, "insert": 3, "equival": 3, "non": 3, "backend": 3, "respect": 3, "normal": 3, "should": [3, 6], "primarycategori": [3, 4, 6], "no_restrict": [3, 4, 6], "open_to_general_research_and_clinical_car": [3, 4, 6], "open_to_hmb_research": [3, 4, 6], "open_to_population_and_ancestry_research": [3, 4, 6], "open_to_disease_specif": [3, 4, 6], "geographic_specific_restrict": [3, 4, 6], "open_to_non_profit_use_onli": [3, 4, 6], "publication_requir": [3, 4, 6], "collaboration_requir": [3, 4, 6], "ethics_approval_requir": [3, 4, 6], "time_limit_on_us": [3, 4, 6], "cost_on_us": [3, 4, 6], "data_security_measures_requir": [3, 4, 6], "general_research_purpos": [3, 4, 6], "hmb_research_purpos": [3, 4, 6], "clinical_purpos": [3, 4, 6], "hmb_research_purpose_id": 3, "clinical_purpose_id": 3, "general_research_purpose_id": 3, "secondarycategori": [3, 4, 6], "open_to_genetic_studies_onli": [3, 4], "research_specific_restrict": [3, 4, 6], "open_to_research_use_onli": [3, 4, 6], "no_general_method_research": [3, 4, 6], "singletoncontractmodel": [3, 11], "singletonmodel": 3, "contract_nam": [3, 11, 12], "classmethod": 3, "exist": [3, 6], "primari": 3, "kei": [3, 6], "1": 3, "ensur": 3, "onli": 3, "databas": 3, "account": [4, 7, 10], "__first__": 4, "addfield": 4, "model_nam": 4, "consentcontractmodeltestcas": 5, "setup": 5, "hook": 5, "up": 5, "fixtur": 5, "befor": 5, "exercis": 5, "test_deploi": 5, "datacontractmodeltestcas": 5, "deploy_registri": [5, 13], "login_us": 5, "data_login": 5, "register_us": 5, "data_registr": 5, "test_access_data_view": 5, "upload_data": 5, "data_upload": 5, "luceregistrycontractmodeltestcas": 5, "plonkverifiercontractmodeltestcas": 5, "healthcareconfig": 6, "clinicalpurposeseri": 6, "consentcontractseri": 6, "deployment_cost": 6, "53000": 6, "datacontractseri": 6, "generalresearchpurposeseri": 6, "hmbresearchpurposeseri": 6, "primarycategotyseri": 6, "regestrycontractseri": 6, "estimated_ga": 6, "requirementsseri": 6, "researchpurposeseri": 6, "restrictionsseri": 6, "secondarycategotyseri": 6, "open_to_genetic_studi": 6, "contractslistview": 6, "luceregistryview": 6, "while": 6, "luceregistri": [6, 13], "contract": [6, 11, 13], "failur": 6, "blockchain": [6, 7, 10], "requestdatasetview": 6, "dataset": 6, "access": 6, "authent": 6, "make": 6, "registr": 6, "ethereum": 6, "extract": 6, "log": 6, "relev": 6, "inform": [6, 8], "public": 6, "each": 6, "http": [6, 8, 11], "str": [6, 11], "respons": 6, "either": 6, "transact": 6, "receipt": [6, 13], "error": [6, 13], "request_access": 6, "c_address": 6, "research": 6, "purpos": 6, "assign": 6, "int": [6, 11], "bool": 6, "flag": 6, "determin": 6, "code": 6, "indic": 6, "union": 6, "list": [6, 8], "retrievecontractbyuseridview": 6, "searchcontract": 6, "uploaddataview": 6, "get_luce_registri": 6, "is_luce_registry_deploi": 6, "packag": [7, 10], "healthcar": [7, 10], "lucehom": [7, 10], "modul": [7, 10], "privaci": [7, 10], "index": 7, "search": 7, "page": 7, "project": 8, "gener": [8, 11], "startproject": 8, "2": 8, "6": 8, "For": 8, "more": 8, "see": 8, "doc": 8, "djangoproject": 8, "com": 8, "en": 8, "topic": 8, "full": 8, "ref": 8, "config": 8, "It": 8, "expos": 8, "callabl": 8, "level": 8, "variabl": 8, "applic": 8, "howto": 8, "deploy": 8, "subpackag": 10, "submodul": 10, "content": 10, "app": 10, "form": 10, "serial": [10, 13], "url": 10, "view": 10, "singleton": [10, 11], "settings_psql": 10, "wsgi": 10, "api": 10, "disposable_address": 10, "snarkjs_servic": 10, "custom_exept": 10, "web3_script": 10, "generate_proof": 11, "privacyconfig": 11, "disposableaddressservic": 11, "servic": 11, "function": 11, "dispos": 11, "get_a_new_address": 11, "newli": 11, "get_a_new_address_with_bal": 11, "sender": 11, "transfer": 11, "balanc": 11, "mimicmixingservicecontract": [11, 12], "store": 11, "mimicmixingservic": 11, "default_contract_nam": 11, "deposit": 11, "is_deploi": 11, "require_deploi": 11, "withdraw": 11, "dispossable_address": 11, "snarkjsservic": 11, "base_url": 11, "localhost": 11, "8888": 11, "blockchain_except": 13, "tx_receipt": 13, "custom_exception_handl": 13, "exc": 13, "context": 13, "custom_messag": 13, "validation_exept": 13, "format_error_blockchain": 13, "format_error": 13, "get_initial_respons": 13, "set_logg": 13, "assign_address_v3": 13, "check_bal": 13, "compile_and_extract_interfac": 13, "interfac": 13, "compile_and_extract_interface_cons": 13, "compile_and_extract_interface_main": 13, "compile_and_extract_interface_registri": 13, "_user": 13, "deploy_cons": 13, "deploy_contract_main": 13, "getallrestrictionsandpurpos": 13, "get_link": 13, "receipt_to_dict": 13, "registri": 13, "send_eth": 13, "amount_in_eth": 13, "recipient_address": 13, "sender_pkei": 13, "consent_address": 13, "sign_and_send": 13, "contract_txn": 13, "private_kei": 13, "transact_funct": 13, "func": 13, "dictionari": 13, "consent_obj": 13}, "objects": {"": [[0, 0, 0, "-", "accounts"], [3, 0, 0, "-", "blockchain"], [6, 0, 0, "-", "healthcare"], [8, 0, 0, "-", "lucehome"], [9, 0, 0, "-", "manage"], [11, 0, 0, "-", "privacy"], [13, 0, 0, "-", "utils"]], "accounts": [[0, 0, 0, "-", "admin"], [0, 0, 0, "-", "apps"], [0, 0, 0, "-", "forms"], [1, 0, 0, "-", "migrations"], [0, 0, 0, "-", "models"], [0, 0, 0, "-", "serializers"], [2, 0, 0, "-", "tests"], [0, 0, 0, "-", "urls"], [0, 0, 0, "-", "views"]], "accounts.admin": [[0, 1, 1, "", "UserAdmin"]], "accounts.admin.UserAdmin": [[0, 2, 1, "", "add_fieldsets"], [0, 2, 1, "", "add_form"], [0, 2, 1, "", "fieldsets"], [0, 2, 1, "", "filter_horizontal"], [0, 2, 1, "", "form"], [0, 2, 1, "", "list_display"], [0, 2, 1, "", "list_filter"], [0, 3, 1, "", "media"], [0, 2, 1, "", "ordering"], [0, 2, 1, "", "search_fields"]], "accounts.apps": [[0, 1, 1, "", "AccountsConfig"]], "accounts.apps.AccountsConfig": [[0, 2, 1, "", "name"]], "accounts.forms": [[0, 1, 1, "", "LoginForm"], [0, 1, 1, "", "RegisterForm"], [0, 1, 1, "", "UserAdminChangeForm"], [0, 1, 1, "", "UserAdminCreationForm"]], "accounts.forms.LoginForm": [[0, 2, 1, "", "base_fields"], [0, 2, 1, "", "declared_fields"], [0, 3, 1, "", "media"]], "accounts.forms.RegisterForm": [[0, 1, 1, "", "Meta"], [0, 2, 1, "", "base_fields"], [0, 4, 1, "", "clean_email"], [0, 4, 1, "", "clean_password2"], [0, 2, 1, "", "declared_fields"], [0, 3, 1, "", "media"], [0, 4, 1, "", "save"]], "accounts.forms.RegisterForm.Meta": [[0, 2, 1, "", "fields"], [0, 2, 1, "", "model"]], "accounts.forms.UserAdminChangeForm": [[0, 1, 1, "", "Meta"], [0, 2, 1, "", "base_fields"], [0, 4, 1, "", "clean_password"], [0, 2, 1, "", "declared_fields"], [0, 3, 1, "", "media"]], "accounts.forms.UserAdminChangeForm.Meta": [[0, 2, 1, "", "fields"], [0, 2, 1, "", "model"]], "accounts.forms.UserAdminCreationForm": [[0, 1, 1, "", "Meta"], [0, 2, 1, "", "base_fields"], [0, 4, 1, "", "clean_password2"], [0, 2, 1, "", "declared_fields"], [0, 3, 1, "", "media"], [0, 4, 1, "", "save"]], "accounts.forms.UserAdminCreationForm.Meta": [[0, 2, 1, "", "fields"], [0, 2, 1, "", "model"]], "accounts.migrations": [[1, 0, 0, "-", "0001_initial"]], "accounts.migrations.0001_initial": [[1, 1, 1, "", "Migration"]], "accounts.migrations.0001_initial.Migration": [[1, 2, 1, "", "dependencies"], [1, 2, 1, "", "initial"], [1, 2, 1, "", "operations"]], "accounts.models": [[0, 1, 1, "", "User"], [0, 1, 1, "", "UserManager"]], "accounts.models.User": [[0, 5, 1, "", "DoesNotExist"], [0, 5, 1, "", "MultipleObjectsReturned"], [0, 2, 1, "", "REQUIRED_FIELDS"], [0, 2, 1, "", "USERNAME_FIELD"], [0, 2, 1, "", "active"], [0, 2, 1, "", "admin"], [0, 2, 1, "", "age"], [0, 2, 1, "", "auth_token"], [0, 2, 1, "", "consentcontract_set"], [0, 2, 1, "", "country"], [0, 4, 1, "", "create_wallet"], [0, 2, 1, "", "datacontract_set"], [0, 2, 1, "", "email"], [0, 2, 1, "", "ethereum_private_key"], [0, 2, 1, "", "ethereum_public_key"], [0, 2, 1, "", "first_name"], [0, 2, 1, "", "gender"], [0, 4, 1, "", "get_full_name"], [0, 4, 1, "", "get_gender_display"], [0, 4, 1, "", "get_short_name"], [0, 4, 1, "", "get_user_type_display"], [0, 4, 1, "", "has_module_perms"], [0, 4, 1, "", "has_perm"], [0, 2, 1, "", "id"], [0, 2, 1, "", "institution"], [0, 3, 1, "", "is_active"], [0, 3, 1, "", "is_admin"], [0, 2, 1, "", "is_approved"], [0, 3, 1, "", "is_staff"], [0, 2, 1, "", "last_login"], [0, 2, 1, "", "last_name"], [0, 2, 1, "", "logentry_set"], [0, 2, 1, "", "luceregistrycontract_set"], [0, 2, 1, "", "objects"], [0, 2, 1, "", "password"], [0, 2, 1, "", "staff"], [0, 2, 1, "", "user_type"]], "accounts.models.UserManager": [[0, 4, 1, "", "create_auth_token"], [0, 4, 1, "", "create_staffuser"], [0, 4, 1, "", "create_superuser"], [0, 4, 1, "", "create_user"]], "accounts.serializers": [[0, 1, 1, "", "PublicUserSerializer"], [0, 1, 1, "", "UserSerializer"]], "accounts.serializers.PublicUserSerializer": [[0, 1, 1, "", "Meta"]], "accounts.serializers.PublicUserSerializer.Meta": [[0, 2, 1, "", "fields"], [0, 2, 1, "", "model"]], "accounts.serializers.UserSerializer": [[0, 1, 1, "", "Meta"], [0, 4, 1, "", "create"], [0, 4, 1, "", "update"], [0, 4, 1, "", "validate"]], "accounts.serializers.UserSerializer.Meta": [[0, 2, 1, "", "fields"], [0, 2, 1, "", "model"]], "accounts.tests": [[2, 0, 0, "-", "test_Registration"]], "accounts.tests.test_Registration": [[2, 1, 1, "", "RegistrationTestCase"]], "accounts.tests.test_Registration.RegistrationTestCase": [[2, 4, 1, "", "test_valid_registration"]], "accounts.views": [[0, 1, 1, "", "ObtainAuthToken"], [0, 1, 1, "", "PrivateUserInfoView"], [0, 1, 1, "", "PublicUserInfoView"], [0, 1, 1, "", "UserListView"], [0, 1, 1, "", "UserRegistration"], [0, 1, 1, "", "UserUpdateView"]], "accounts.views.ObtainAuthToken": [[0, 4, 1, "", "get_serializer"], [0, 4, 1, "", "get_serializer_context"], [0, 2, 1, "", "parser_classes"], [0, 2, 1, "", "permission_classes"], [0, 4, 1, "", "post"], [0, 2, 1, "", "renderer_classes"], [0, 2, 1, "", "serializer_class"], [0, 2, 1, "", "throttle_classes"]], "accounts.views.PrivateUserInfoView": [[0, 4, 1, "", "get"], [0, 2, 1, "", "permission_classes"]], "accounts.views.PublicUserInfoView": [[0, 4, 1, "", "get"], [0, 4, 1, "", "get_object"]], "accounts.views.UserListView": [[0, 4, 1, "", "get"]], "accounts.views.UserRegistration": [[0, 4, 1, "", "address_get_or_create"], [0, 4, 1, "", "post"]], "accounts.views.UserUpdateView": [[0, 4, 1, "", "address_get_or_create"], [0, 2, 1, "", "permission_classes"], [0, 4, 1, "", "put"]], "blockchain": [[3, 0, 0, "-", "admin"], [3, 0, 0, "-", "apps"], [4, 0, 0, "-", "migrations"], [3, 0, 0, "-", "models"], [3, 0, 0, "-", "singleton"], [5, 0, 0, "-", "tests"], [3, 0, 0, "-", "views"]], "blockchain.apps": [[3, 1, 1, "", "BlockchainConfig"]], "blockchain.apps.BlockchainConfig": [[3, 2, 1, "", "name"]], "blockchain.migrations": [[4, 0, 0, "-", "0001_initial"], [4, 0, 0, "-", "0002_consentcontract_research_purpose"]], "blockchain.migrations.0001_initial": [[4, 1, 1, "", "Migration"]], "blockchain.migrations.0001_initial.Migration": [[4, 2, 1, "", "dependencies"], [4, 2, 1, "", "initial"], [4, 2, 1, "", "operations"]], "blockchain.migrations.0002_consentcontract_research_purpose": [[4, 1, 1, "", "Migration"]], "blockchain.migrations.0002_consentcontract_research_purpose.Migration": [[4, 2, 1, "", "dependencies"], [4, 2, 1, "", "operations"]], "blockchain.models": [[3, 1, 1, "", "ClinicalPurpose"], [3, 1, 1, "", "ConsentContract"], [3, 1, 1, "", "DataContract"], [3, 1, 1, "", "GeneralResearchPurpose"], [3, 1, 1, "", "HMBResearchPurpose"], [3, 1, 1, "", "LuceRegistryContract"], [3, 1, 1, "", "PlonkVerifierContract"], [3, 1, 1, "", "PrimaryCategory"], [3, 1, 1, "", "Requirements"], [3, 1, 1, "", "ResearchPurpose"], [3, 1, 1, "", "Restrictions"], [3, 1, 1, "", "SecondaryCategory"]], "blockchain.models.ClinicalPurpose": [[3, 5, 1, "", "DoesNotExist"], [3, 5, 1, "", "MultipleObjectsReturned"], [3, 2, 1, "", "id"], [3, 2, 1, "", "objects"], [3, 2, 1, "", "researchpurpose_set"], [3, 2, 1, "", "use_for_decision_support"], [3, 2, 1, "", "use_for_disease_support"]], "blockchain.models.ConsentContract": [[3, 5, 1, "", "DoesNotExist"], [3, 5, 1, "", "MultipleObjectsReturned"], [3, 2, 1, "", "contract_address"], [3, 2, 1, "", "datacontract_set"], [3, 4, 1, "", "deploy"], [3, 4, 1, "", "deploy_contract"], [3, 4, 1, "", "get_a_new_account"], [3, 4, 1, "", "give_HMB_research_purpose"], [3, 4, 1, "", "give_clinical_research_purpose"], [3, 4, 1, "", "give_general_research_purpose"], [3, 2, 1, "", "id"], [3, 2, 1, "", "objects"], [3, 2, 1, "", "research_purpose"], [3, 2, 1, "", "research_purpose_id"], [3, 2, 1, "", "restrictions"], [3, 2, 1, "", "restrictions_id"], [3, 4, 1, "", "retrieve_contract_owner"], [3, 4, 1, "", "update_data_consent"], [3, 4, 1, "", "upload_data_consent"], [3, 2, 1, "", "user"], [3, 2, 1, "", "user_id"]], "blockchain.models.DataContract": [[3, 5, 1, "", "DoesNotExist"], [3, 5, 1, "", "MultipleObjectsReturned"], [3, 4, 1, "", "add_data_requester"], [3, 4, 1, "", "checkAccess"], [3, 2, 1, "", "commitment"], [3, 2, 1, "", "consent_contract"], [3, 2, 1, "", "consent_contract_id"], [3, 2, 1, "", "contract_address"], [3, 4, 1, "", "deploy"], [3, 4, 1, "", "deploy_contract"], [3, 2, 1, "", "description"], [3, 4, 1, "", "getLink"], [3, 4, 1, "", "get_a_new_account"], [3, 4, 1, "", "get_commitment"], [3, 2, 1, "", "id"], [3, 2, 1, "", "licence"], [3, 2, 1, "", "link"], [3, 2, 1, "", "objects"], [3, 4, 1, "", "publish_dataset"], [3, 4, 1, "", "require_verifier_deployed"], [3, 4, 1, "", "retreive_info"], [3, 4, 1, "", "set_consent_address"], [3, 4, 1, "", "set_registry_address"], [3, 2, 1, "", "user"], [3, 2, 1, "", "user_id"]], "blockchain.models.GeneralResearchPurpose": [[3, 5, 1, "", "DoesNotExist"], [3, 5, 1, "", "MultipleObjectsReturned"], [3, 2, 1, "", "id"], [3, 2, 1, "", "objects"], [3, 2, 1, "", "researchpurpose_set"], [3, 2, 1, "", "use_for_biomedical_research"], [3, 2, 1, "", "use_for_methods_development"], [3, 2, 1, "", "use_for_reference_or_control_material"], [3, 2, 1, "", "use_for_research_ancestry"], [3, 2, 1, "", "use_for_research_concerning_populations"]], "blockchain.models.HMBResearchPurpose": [[3, 5, 1, "", "DoesNotExist"], [3, 5, 1, "", "MultipleObjectsReturned"], [3, 2, 1, "", "id"], [3, 2, 1, "", "objects"], [3, 2, 1, "", "researchpurpose_set"], [3, 2, 1, "", "use_for_research_concerning_age_categories"], [3, 2, 1, "", "use_for_research_concerning_any_disease"], [3, 2, 1, "", "use_for_research_concerning_drug_development"], [3, 2, 1, "", "use_for_research_concerning_fundamental_biology"], [3, 2, 1, "", "use_for_research_concerning_gender_categories"], [3, 2, 1, "", "use_for_research_concerning_genetics"]], "blockchain.models.LuceRegistryContract": [[3, 5, 1, "", "DoesNotExist"], [3, 5, 1, "", "MultipleObjectsReturned"], [3, 2, 1, "", "contract_address"], [3, 4, 1, "", "deploy"], [3, 4, 1, "", "deploy_contract"], [3, 2, 1, "", "id"], [3, 4, 1, "", "is_registered"], [3, 4, 1, "", "is_registered_as_requester"], [3, 2, 1, "", "objects"], [3, 4, 1, "", "register_provider"], [3, 4, 1, "", "register_requester"], [3, 2, 1, "", "user"], [3, 2, 1, "", "user_id"]], "blockchain.models.PlonkVerifierContract": [[3, 5, 1, "", "DoesNotExist"], [3, 5, 1, "", "MultipleObjectsReturned"], [3, 2, 1, "", "address"], [3, 4, 1, "", "deploy"], [3, 2, 1, "", "id"], [3, 2, 1, "", "name"], [3, 2, 1, "", "objects"], [3, 4, 1, "", "save"]], "blockchain.models.PrimaryCategory": [[3, 5, 1, "", "DoesNotExist"], [3, 5, 1, "", "MultipleObjectsReturned"], [3, 2, 1, "", "id"], [3, 2, 1, "", "no_restrictions"], [3, 2, 1, "", "objects"], [3, 2, 1, "", "open_to_HMB_research"], [3, 2, 1, "", "open_to_disease_specific"], [3, 2, 1, "", "open_to_general_research_and_clinical_care"], [3, 2, 1, "", "open_to_population_and_ancestry_research"]], "blockchain.models.Requirements": [[3, 5, 1, "", "DoesNotExist"], [3, 5, 1, "", "MultipleObjectsReturned"], [3, 2, 1, "", "collaboration_required"], [3, 2, 1, "", "cost_on_use"], [3, 2, 1, "", "data_security_measures_required"], [3, 2, 1, "", "ethics_approval_required"], [3, 2, 1, "", "geographic_specific_restriction"], [3, 2, 1, "", "id"], [3, 2, 1, "", "objects"], [3, 2, 1, "", "open_to_non_profit_use_only"], [3, 2, 1, "", "publication_required"], [3, 2, 1, "", "time_limit_on_use"]], "blockchain.models.ResearchPurpose": [[3, 5, 1, "", "DoesNotExist"], [3, 2, 1, "", "HMB_research_purpose"], [3, 2, 1, "", "HMB_research_purpose_id"], [3, 5, 1, "", "MultipleObjectsReturned"], [3, 2, 1, "", "clinical_purpose"], [3, 2, 1, "", "clinical_purpose_id"], [3, 2, 1, "", "consentcontract_set"], [3, 2, 1, "", "general_research_purpose"], [3, 2, 1, "", "general_research_purpose_id"], [3, 2, 1, "", "id"], [3, 2, 1, "", "objects"]], "blockchain.models.Restrictions": [[3, 5, 1, "", "DoesNotExist"], [3, 5, 1, "", "MultipleObjectsReturned"], [3, 2, 1, "", "consentcontract_set"], [3, 2, 1, "", "id"], [3, 2, 1, "", "no_restrictions"], [3, 2, 1, "", "objects"], [3, 2, 1, "", "open_to_HMB_research"], [3, 2, 1, "", "open_to_disease_specific"], [3, 2, 1, "", "open_to_general_research_and_clinical_care"], [3, 2, 1, "", "open_to_population_and_ancestry_research"]], "blockchain.models.SecondaryCategory": [[3, 5, 1, "", "DoesNotExist"], [3, 5, 1, "", "MultipleObjectsReturned"], [3, 2, 1, "", "id"], [3, 2, 1, "", "no_general_method_research"], [3, 2, 1, "", "objects"], [3, 2, 1, "", "open_to_genetic_studies_only"], [3, 2, 1, "", "open_to_research_use_only"], [3, 2, 1, "", "research_specific_restrictions"]], "blockchain.singleton": [[3, 1, 1, "", "SingletonContractModel"], [3, 1, 1, "", "SingletonModel"]], "blockchain.singleton.SingletonContractModel": [[3, 1, 1, "", "Meta"], [3, 2, 1, "", "contract_address"], [3, 2, 1, "", "contract_name"], [3, 4, 1, "", "deploy"], [3, 4, 1, "", "load"]], "blockchain.singleton.SingletonContractModel.Meta": [[3, 2, 1, "", "abstract"]], "blockchain.singleton.SingletonModel": [[3, 1, 1, "", "Meta"], [3, 4, 1, "", "load"], [3, 4, 1, "", "save"]], "blockchain.singleton.SingletonModel.Meta": [[3, 2, 1, "", "abstract"]], "blockchain.tests": [[5, 0, 0, "-", "test_ConsentContract"], [5, 0, 0, "-", "test_DataContract"], [5, 0, 0, "-", "test_LuceRegistryContract"], [5, 0, 0, "-", "test_PlonkVerifierContract"]], "blockchain.tests.test_ConsentContract": [[5, 1, 1, "", "ConsentContractModelTestCase"]], "blockchain.tests.test_ConsentContract.ConsentContractModelTestCase": [[5, 4, 1, "", "setUp"], [5, 4, 1, "", "test_deploy"]], "blockchain.tests.test_DataContract": [[5, 1, 1, "", "DataContractModelTestCase"]], "blockchain.tests.test_DataContract.DataContractModelTestCase": [[5, 4, 1, "", "deploy_registry"], [5, 4, 1, "", "login_user"], [5, 4, 1, "", "register_user"], [5, 4, 1, "", "setUp"], [5, 4, 1, "", "test_access_data_view"], [5, 4, 1, "", "upload_data"]], "blockchain.tests.test_LuceRegistryContract": [[5, 1, 1, "", "LuceRegistryContractModelTestCase"]], "blockchain.tests.test_LuceRegistryContract.LuceRegistryContractModelTestCase": [[5, 4, 1, "", "setUp"], [5, 4, 1, "", "test_deploy"]], "blockchain.tests.test_PlonkVerifierContract": [[5, 1, 1, "", "PlonkVerifierContractModelTestCase"]], "blockchain.tests.test_PlonkVerifierContract.PlonkVerifierContractModelTestCase": [[5, 4, 1, "", "setUp"], [5, 4, 1, "", "test_deploy"]], "healthcare": [[6, 0, 0, "-", "admin"], [6, 0, 0, "-", "apps"], [6, 0, 0, "-", "models"], [6, 0, 0, "-", "serializers"], [6, 0, 0, "-", "urls"], [6, 0, 0, "-", "views"]], "healthcare.apps": [[6, 1, 1, "", "healthcareConfig"]], "healthcare.apps.healthcareConfig": [[6, 2, 1, "", "name"]], "healthcare.serializers": [[6, 1, 1, "", "ClinicalPurposeSerializer"], [6, 1, 1, "", "ConsentContractSerializer"], [6, 1, 1, "", "DataContractSerializer"], [6, 1, 1, "", "GeneralResearchPurposeSerializer"], [6, 1, 1, "", "HMBResearchPurposeSerializer"], [6, 1, 1, "", "PrimaryCategotySerializer"], [6, 1, 1, "", "RegestryContractSerializer"], [6, 1, 1, "", "RequirementsSerializer"], [6, 1, 1, "", "ResearchPurposeSerializer"], [6, 1, 1, "", "RestrictionsSerializer"], [6, 1, 1, "", "SecondaryCategotySerializer"]], "healthcare.serializers.ClinicalPurposeSerializer": [[6, 1, 1, "", "Meta"]], "healthcare.serializers.ClinicalPurposeSerializer.Meta": [[6, 2, 1, "", "fields"], [6, 2, 1, "", "model"]], "healthcare.serializers.ConsentContractSerializer": [[6, 2, 1, "", "DEPLOYMENT_COST"], [6, 1, 1, "", "Meta"], [6, 4, 1, "", "create"]], "healthcare.serializers.ConsentContractSerializer.Meta": [[6, 2, 1, "", "fields"], [6, 2, 1, "", "model"]], "healthcare.serializers.DataContractSerializer": [[6, 2, 1, "", "DEPLOYMENT_COST"], [6, 1, 1, "", "Meta"], [6, 4, 1, "", "create"], [6, 4, 1, "", "validate"]], "healthcare.serializers.DataContractSerializer.Meta": [[6, 2, 1, "", "fields"], [6, 2, 1, "", "model"]], "healthcare.serializers.GeneralResearchPurposeSerializer": [[6, 1, 1, "", "Meta"]], "healthcare.serializers.GeneralResearchPurposeSerializer.Meta": [[6, 2, 1, "", "fields"], [6, 2, 1, "", "model"]], "healthcare.serializers.HMBResearchPurposeSerializer": [[6, 1, 1, "", "Meta"]], "healthcare.serializers.HMBResearchPurposeSerializer.Meta": [[6, 2, 1, "", "fields"], [6, 2, 1, "", "model"]], "healthcare.serializers.PrimaryCategotySerializer": [[6, 1, 1, "", "Meta"]], "healthcare.serializers.PrimaryCategotySerializer.Meta": [[6, 2, 1, "", "fields"], [6, 2, 1, "", "model"]], "healthcare.serializers.RegestryContractSerializer": [[6, 1, 1, "", "Meta"], [6, 2, 1, "", "estimated_gas"]], "healthcare.serializers.RegestryContractSerializer.Meta": [[6, 2, 1, "", "fields"], [6, 2, 1, "", "model"]], "healthcare.serializers.RequirementsSerializer": [[6, 1, 1, "", "Meta"]], "healthcare.serializers.RequirementsSerializer.Meta": [[6, 2, 1, "", "fields"], [6, 2, 1, "", "model"]], "healthcare.serializers.ResearchPurposeSerializer": [[6, 1, 1, "", "Meta"], [6, 4, 1, "", "create"]], "healthcare.serializers.ResearchPurposeSerializer.Meta": [[6, 2, 1, "", "fields"], [6, 2, 1, "", "model"]], "healthcare.serializers.RestrictionsSerializer": [[6, 1, 1, "", "Meta"]], "healthcare.serializers.RestrictionsSerializer.Meta": [[6, 2, 1, "", "fields"], [6, 2, 1, "", "model"]], "healthcare.serializers.SecondaryCategotySerializer": [[6, 1, 1, "", "Meta"]], "healthcare.serializers.SecondaryCategotySerializer.Meta": [[6, 2, 1, "", "fields"], [6, 2, 1, "", "model"]], "healthcare.views": [[6, 1, 1, "", "ContractsListView"], [6, 1, 1, "", "GetLink"], [6, 1, 1, "", "LuceRegistryView"], [6, 1, 1, "", "RequestDatasetView"], [6, 1, 1, "", "RetrieveContractByUserIDView"], [6, 1, 1, "", "SearchContract"], [6, 1, 1, "", "UploadDataView"]], "healthcare.views.ContractsListView": [[6, 4, 1, "", "get"]], "healthcare.views.GetLink": [[6, 2, 1, "", "permission_classes"], [6, 4, 1, "", "post"]], "healthcare.views.LuceRegistryView": [[6, 4, 1, "", "get"], [6, 2, 1, "", "permission_classes"], [6, 4, 1, "", "post"]], "healthcare.views.RequestDatasetView": [[6, 2, 1, "", "permission_classes"], [6, 4, 1, "", "post"], [6, 4, 1, "", "request_access"]], "healthcare.views.RetrieveContractByUserIDView": [[6, 4, 1, "", "get"]], "healthcare.views.SearchContract": [[6, 2, 1, "", "permission_classes"], [6, 4, 1, "", "post"]], "healthcare.views.UploadDataView": [[6, 4, 1, "", "get"], [6, 4, 1, "", "get_a_new_account"], [6, 4, 1, "", "get_luce_registry"], [6, 4, 1, "", "is_luce_registry_deployed"], [6, 2, 1, "", "permission_classes"], [6, 4, 1, "", "post"]], "lucehome": [[8, 0, 0, "-", "settings"], [8, 0, 0, "-", "settings_psql"], [8, 0, 0, "-", "test"], [8, 0, 0, "-", "urls"], [8, 0, 0, "-", "views"], [8, 0, 0, "-", "wsgi"]], "privacy": [[11, 0, 0, "-", "admin"], [11, 0, 0, "-", "api"], [11, 0, 0, "-", "apps"], [11, 0, 0, "-", "disposable_address"], [12, 0, 0, "-", "migrations"], [11, 0, 0, "-", "models"], [11, 0, 0, "-", "snarkjs_service"], [11, 0, 0, "-", "utils"], [11, 0, 0, "-", "views"]], "privacy.api": [[11, 6, 1, "", "generate_proof"]], "privacy.apps": [[11, 1, 1, "", "PrivacyConfig"]], "privacy.apps.PrivacyConfig": [[11, 2, 1, "", "name"]], "privacy.disposable_address": [[11, 1, 1, "", "DisposableAddressService"]], "privacy.disposable_address.DisposableAddressService": [[11, 4, 1, "", "get_a_new_address"], [11, 4, 1, "", "get_a_new_address_with_balance"]], "privacy.migrations": [[12, 0, 0, "-", "0001_initial"]], "privacy.migrations.0001_initial": [[12, 1, 1, "", "Migration"]], "privacy.migrations.0001_initial.Migration": [[12, 2, 1, "", "dependencies"], [12, 2, 1, "", "initial"], [12, 2, 1, "", "operations"]], "privacy.models": [[11, 1, 1, "", "MimicMixingServiceContract"]], "privacy.models.MimicMixingServiceContract": [[11, 5, 1, "", "DoesNotExist"], [11, 5, 1, "", "MultipleObjectsReturned"], [11, 4, 1, "", "balance"], [11, 2, 1, "", "contract_address"], [11, 2, 1, "", "contract_name"], [11, 2, 1, "", "default_contract_name"], [11, 4, 1, "", "deploy"], [11, 4, 1, "", "deposit"], [11, 2, 1, "", "id"], [11, 4, 1, "", "is_deployed"], [11, 2, 1, "", "objects"], [11, 4, 1, "", "require_deployed"], [11, 4, 1, "", "withdraw"]], "privacy.snarkjs_service": [[11, 1, 1, "", "SnarkjsService"]], "privacy.snarkjs_service.SnarkjsService": [[11, 4, 1, "", "generate_proof"]], "utils": [[13, 0, 0, "-", "custom_exeptions"], [14, 0, 0, "-", "data"], [13, 0, 0, "-", "utils"], [13, 0, 0, "-", "web3_scripts"]], "utils.custom_exeptions": [[13, 6, 1, "", "blockchain_exception"], [13, 6, 1, "", "custom_exception_handler"], [13, 6, 1, "", "custom_message"], [13, 6, 1, "", "validation_exeption"]], "utils.utils": [[13, 6, 1, "", "format_error_blockchain"], [13, 6, 1, "", "format_errors"], [13, 6, 1, "", "get_initial_response"], [13, 6, 1, "", "set_logger"]], "utils.web3_scripts": [[13, 6, 1, "", "add_data_requester"], [13, 6, 1, "", "assign_address_v3"], [13, 6, 1, "", "checkAccess"], [13, 6, 1, "", "check_balance"], [13, 6, 1, "", "compile_and_extract_interface"], [13, 6, 1, "", "compile_and_extract_interface_Consent"], [13, 6, 1, "", "compile_and_extract_interface_Main"], [13, 6, 1, "", "compile_and_extract_interface_Registry"], [13, 6, 1, "", "create_wallet"], [13, 6, 1, "", "deploy"], [13, 6, 1, "", "deploy_consent"], [13, 6, 1, "", "deploy_contract_main"], [13, 6, 1, "", "deploy_registry"], [13, 6, 1, "", "getAllRestrictionsAndPurposes"], [13, 6, 1, "", "get_link"], [13, 6, 1, "", "give_HMB_research_purpose"], [13, 6, 1, "", "give_clinical_research_purpose"], [13, 6, 1, "", "give_general_research_purpose"], [13, 6, 1, "", "is_registered"], [13, 6, 1, "", "publish_dataset"], [13, 6, 1, "", "receipt_to_dict"], [13, 6, 1, "", "register_provider"], [13, 6, 1, "", "register_requester"], [13, 6, 1, "", "send_ether"], [13, 6, 1, "", "set_consent_address"], [13, 6, 1, "", "set_registry_address"], [13, 6, 1, "", "sign_and_send"], [13, 6, 1, "", "transact_function"], [13, 6, 1, "", "upload_data_consent"]]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:attribute", "3": "py:property", "4": "py:method", "5": "py:exception", "6": "py:function"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "attribute", "Python attribute"], "3": ["py", "property", "Python property"], "4": ["py", "method", "Python method"], "5": ["py", "exception", "Python exception"], "6": ["py", "function", "Python function"]}, "titleterms": {"account": [0, 1, 2], "packag": [0, 1, 2, 3, 4, 5, 6, 8, 11, 12, 13, 14], "subpackag": [0, 3, 11, 13], "submodul": [0, 1, 2, 3, 4, 5, 6, 8, 11, 12, 13], "admin": [0, 3, 6, 11], "modul": [0, 1, 2, 3, 4, 5, 6, 8, 9, 11, 12, 13, 14], "app": [0, 3, 6, 11], "form": 0, "model": [0, 3, 6, 11], "serial": [0, 6], "url": [0, 6, 8], "view": [0, 3, 6, 8, 11], "content": [0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 13, 14], "migrat": [1, 4, 12], "0001_initi": [1, 4, 12], "test": [2, 5, 8], "test_registr": 2, "blockchain": [3, 4, 5], "singleton": 3, "0002_consentcontract_research_purpos": 4, "test_consentcontract": 5, "test_datacontract": 5, "test_luceregistrycontract": 5, "test_luceregistrycontractsingleton": [], "test_plonkverifiercontract": 5, "healthcar": 6, "welcom": 7, "luce": [7, 10], "s": 7, "document": 7, "indic": 7, "tabl": 7, "lucehom": 8, "set": 8, "settings_psql": 8, "wsgi": 8, "manag": 9, "privaci": [11, 12], "api": 11, "disposable_address": 11, "snarkjs_servic": 11, "util": [11, 13, 14], "custom_exept": 13, "web3_script": 13, "data": 14}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 6, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 56}}) \ No newline at end of file +Search.setIndex({"docnames": ["accounts", "blockchain", "healthcare", "index", "modules", "privacy"], "filenames": ["accounts.rst", "blockchain.rst", "healthcare.rst", "index.rst", "modules.rst", "privacy.rst"], "titles": ["accounts package", "blockchain package", "healthcare package", "Welcome to LUCE\u2019s documentation!", "luce", "privacy package"], "terms": {"migrat": [], "0001_initi": [], "test": [], "test_registr": [], "class": [0, 1, 2, 5], "useradmin": 0, "admin_sit": 0, "base": [0, 1, 2, 5], "add_fieldset": 0, "none": [0, 2, 5], "wide": 0, "field": [0, 1, 2, 5], "email": 0, "first_nam": 0, "last_nam": 0, "password1": 0, "password2": 0, "add_form": 0, "alia": [0, 2], "useradmincreationform": 0, "fieldset": 0, "password": 0, "person": 0, "info": 0, "web3": 0, "ethereum_public_kei": 0, "ethereum_private_kei": 0, "filter_horizont": 0, "useradminchangeform": 0, "list_displai": 0, "list_filt": 0, "properti": 0, "media": 0, "order": [0, 2], "search_field": 0, "accountsconfig": 0, "app_nam": [0, 1, 2, 5], "app_modul": [0, 1, 2, 5], "appconfig": [0, 1, 2, 5], "name": [0, 1, 2, 5], "loginform": 0, "data": [0, 2], "file": 0, "auto_id": 0, "id_": 0, "s": 0, "prefix": 0, "initi": 0, "error_class": 0, "django": [0, 1, 2, 5], "util": [0, 4], "errorlist": 0, "label_suffix": 0, "empty_permit": 0, "fals": [0, 1], "field_ord": 0, "use_required_attribut": 0, "render": 0, "base_field": 0, "emailfield": 0, "object": [0, 1, 2, 5], "charfield": 0, "declared_field": 0, "return": [0, 2, 5], "all": 0, "requir": [0, 1, 2], "widget": 0, "thi": [0, 1, 2, 5], "registerform": 0, "instanc": [0, 1, 2], "modelform": 0, "meta": [0, 1, 2], "access_token": 0, "user": [0, 1, 2], "clean_email": 0, "clean_password2": 0, "save": [0, 1], "commit": [0, 1, 5], "true": 0, "self": 0, "otherwis": 0, "add": 0, "save_m2m": 0, "method": [0, 1, 2, 5], "which": [0, 2, 5], "can": [0, 1], "call": 0, "after": 0, "manual": 0, "later": 0, "time": [0, 1, 2, 5], "A": [0, 1, 2, 5], "updat": [0, 1], "includ": 0, "replac": 0, "hash": 0, "displai": 0, "user_typ": 0, "activ": 0, "booleanfield": 0, "contrib": 0, "auth": 0, "readonlypasswordhashfield": 0, "typedchoicefield": 0, "clean_password": 0, "creat": [0, 1, 2], "new": [0, 5], "plu": 0, "repeat": 0, "id": [0, 1, 2, 5], "last_login": 0, "countri": 0, "institut": 0, "is_approv": 0, "staff": 0, "gender": 0, "ag": 0, "abstractbaseus": 0, "except": [0, 1, 5], "doesnotexist": [0, 1, 5], "objectdoesnotexist": [0, 1, 5], "multipleobjectsreturn": [0, 1, 5], "required_field": 0, "username_field": 0, "wrapper": [0, 1, 5], "defer": [0, 1, 5], "load": [0, 1, 5], "when": [0, 1, 2, 5], "valu": [0, 1, 5], "read": [0, 1, 5], "from": [0, 1, 5], "first": [0, 1, 2, 5], "queri": [0, 1, 5], "execut": [0, 1, 5], "auth_token": 0, "accessor": [0, 1], "relat": [0, 1], "revers": [0, 1], "side": [0, 1], "one": [0, 1], "In": [0, 1], "exampl": [0, 1, 5], "restaur": 0, "place": 0, "onetoonefield": 0, "related_nam": [0, 1], "reverseonetoonedescriptor": 0, "consentcontract_set": [0, 1], "manag": [0, 1, 5], "mani": [0, 1, 2], "child": [0, 1], "parent": [0, 1], "foreignkei": [0, 1], "children": [0, 1], "reversemanytoonedescriptor": [0, 1], "most": [0, 1], "implement": [0, 1, 2, 5], "deleg": [0, 1], "dynam": [0, 1], "defin": [0, 1], "built": [0, 1], "create_forward_many_to_many_manag": [0, 1], "below": [0, 1], "create_wallet": 0, "datacontract_set": [0, 1], "get_full_nam": 0, "get_gender_displai": 0, "db": [0, 1, 5], "get_short_nam": 0, "get_user_type_displai": 0, "integerfield": 0, "has_module_perm": 0, "app_label": 0, "doe": [0, 1, 2], "have": [0, 2], "permiss": [0, 2], "has_perm": 0, "perm": 0, "obj": 0, "specif": [0, 2], "is_act": 0, "Is": 0, "is_admin": 0, "an": [0, 1, 2, 5], "member": 0, "is_staff": 0, "logentry_set": 0, "luceregistrycontract_set": 0, "usermanag": 0, "arg": [0, 1, 2, 5], "kwarg": [0, 1, 2, 5], "baseusermanag": 0, "create_auth_token": 0, "create_staffus": 0, "create_superus": 0, "0x43e196c418b4b7ebf71ba534042cc8907bd39dc9": 0, "0x5714ad5f65fb27cb0d0ab914db9252dfe24cf33038a181555a7efc3dcf863ab3": 0, "superus": 0, "create_us": 0, "contract_address": [0, 1, 2, 5], "given": [0, 5], "argument": 0, "publicuserseri": 0, "modelseri": [0, 2], "userseri": 0, "validated_data": [0, 2], "we": [0, 2], "bit": [0, 2], "extra": [0, 2], "check": [0, 2, 5], "around": [0, 2], "provid": [0, 2, 5], "descript": [0, 1, 2], "messag": [0, 2, 5], "someth": [0, 2], "goe": [0, 2], "wrong": [0, 2], "essenti": [0, 2], "just": [0, 2], "examplemodel": [0, 2], "If": [0, 2], "ar": [0, 2], "present": [0, 2], "thei": [0, 1, 2], "cannot": [0, 2], "set": [0, 1, 2], "until": [0, 2], "instanti": [0, 2], "case": [0, 2], "like": [0, 2], "so": [0, 2], "example_relationship": [0, 2], "pop": [0, 2], "The": [0, 1, 2, 5], "default": [0, 2, 5], "also": [0, 2], "handl": [0, 2, 5], "nest": [0, 2], "relationship": [0, 2], "you": [0, 1, 2], "want": [0, 1, 2], "support": [0, 2], "writabl": [0, 2], "ll": [0, 2], "need": [0, 2], "write": [0, 2], "explicit": [0, 2], "valid": [0, 2], "obtainauthtoken": 0, "apiview": [0, 2], "get_seri": 0, "get_serializer_context": 0, "parser_class": 0, "rest_framework": [0, 2], "parser": 0, "formpars": 0, "multipartpars": 0, "jsonpars": 0, "permission_class": [0, 2], "post": [0, 2], "request": [0, 2, 5], "renderer_class": 0, "jsonrender": 0, "serializer_class": 0, "authtokenseri": 0, "throttle_class": 0, "privateuserinfoview": 0, "get": [0, 1, 2, 5], "format": [0, 2], "isauthent": [0, 2], "publicuserinfoview": 0, "get_object": 0, "userlistview": 0, "userregistr": 0, "regist": 0, "address_get_or_cr": 0, "createwallet": 0, "userupdateview": 0, "put": 0, "depend": 5, "oper": [], "createmodel": [], "model": 4, "bigautofield": [], "datetimefield": [], "admin": 4, "option": 2, "abstract": 1, "registrationtestcas": [], "methodnam": [], "runtest": [], "testcas": [], "test_valid_registr": [], "0002_consentcontract_research_purpos": [], "test_consentcontract": [], "test_datacontract": [], "test_luceregistrycontract": [], "test_luceregistrycontractsingleton": [], "test_plonkverifiercontract": [], "blockchainconfig": 1, "clinicalpurpos": [1, 2], "use_for_decision_support": [1, 2], "use_for_disease_support": [1, 2], "researchpurpose_set": 1, "consentcontract": [1, 2], "restrict": [1, 2], "research_purpos": 1, "deploi": [1, 2, 5], "deploy_contract": 1, "get_a_new_account": 1, "amount": [1, 2, 5], "1000000000000000": 1, "0": 1, "give_hmb_research_purpos": 1, "estim": [1, 2], "give_clinical_research_purpos": 1, "give_general_research_purpos": 1, "forward": 1, "via": 1, "forwardonetoonedescriptor": 1, "subclass": 1, "forwardmanytoonedescriptor": 1, "research_purpose_id": 1, "restrictions_id": 1, "retrieve_contract_own": 1, "update_data_cons": 1, "upload_data_cons": 1, "user_id": [1, 2], "datacontract": [1, 2], "consent_contract": [1, 2], "licenc": [1, 2], "link": [1, 2], "add_data_request": 1, "access_tim": [1, 2], "purpose_cod": [1, 2], "checkaccess": 1, "researchpurpos": [1, 2], "consent_contract_id": 1, "getlink": [1, 2], "get_commit": 1, "secret": [1, 5], "publish_dataset": 1, "require_verifier_deploi": 1, "retreive_info": 1, "set_consent_address": [1, 2], "set_registry_address": [1, 2], "registry_address": [1, 2], "generalresearchpurpos": [1, 2], "use_for_methods_develop": [1, 2], "use_for_reference_or_control_materi": [1, 2], "use_for_research_concerning_popul": [1, 2], "use_for_research_ancestri": [1, 2], "use_for_biomedical_research": [1, 2], "hmbresearchpurpos": [1, 2], "use_for_research_concerning_fundamental_biolog": [1, 2], "use_for_research_concerning_genet": [1, 2], "use_for_research_concerning_drug_develop": [1, 2], "use_for_research_concerning_any_diseas": [1, 2], "use_for_research_concerning_age_categori": [1, 2], "use_for_research_concerning_gender_categori": [1, 2], "luceregistrycontract": [1, 2], "is_regist": 1, "usertyp": 1, "is_registered_as_request": 1, "register_provid": 1, "register_request": 1, "licens": 1, "plonkverifiercontract": 1, "address": [1, 2, 5], "current": 1, "overrid": 1, "control": 1, "process": [1, 2, 5], "force_insert": 1, "force_upd": 1, "paramet": [1, 5], "us": [1, 5], "insist": 1, "must": [1, 2], "sql": 1, "insert": 1, "equival": 1, "non": 1, "backend": 1, "respect": 1, "normal": 1, "should": [1, 2], "primarycategori": [1, 2], "no_restrict": [1, 2], "open_to_general_research_and_clinical_car": [1, 2], "open_to_hmb_research": [1, 2], "open_to_population_and_ancestry_research": [1, 2], "open_to_disease_specif": [1, 2], "geographic_specific_restrict": [1, 2], "open_to_non_profit_use_onli": [1, 2], "publication_requir": [1, 2], "collaboration_requir": [1, 2], "ethics_approval_requir": [1, 2], "time_limit_on_us": [1, 2], "cost_on_us": [1, 2], "data_security_measures_requir": [1, 2], "general_research_purpos": [1, 2], "hmb_research_purpos": [1, 2], "clinical_purpos": [1, 2], "hmb_research_purpose_id": 1, "clinical_purpose_id": 1, "general_research_purpose_id": 1, "secondarycategori": [1, 2], "open_to_genetic_studies_onli": 1, "research_specific_restrict": [1, 2], "open_to_research_use_onli": [1, 2], "no_general_method_research": [1, 2], "singletoncontractmodel": [1, 5], "singletonmodel": 1, "contract_nam": [1, 5], "classmethod": 1, "exist": [1, 2], "primari": 1, "kei": [1, 2], "1": 1, "ensur": 1, "onli": 1, "databas": 1, "account": [3, 4], "__first__": [], "addfield": [], "model_nam": [], "consentcontractmodeltestcas": [], "setup": [], "hook": [], "up": [], "fixtur": [], "befor": [], "exercis": [], "test_deploi": [], "datacontractmodeltestcas": [], "deploy_registri": [], "login_us": [], "data_login": [], "register_us": [], "data_registr": [], "test_access_data_view": [], "upload_data": [], "data_upload": [], "luceregistrycontractmodeltestcas": [], "plonkverifiercontractmodeltestcas": [], "healthcareconfig": 2, "clinicalpurposeseri": 2, "consentcontractseri": 2, "deployment_cost": 2, "53000": 2, "datacontractseri": 2, "generalresearchpurposeseri": 2, "hmbresearchpurposeseri": 2, "primarycategotyseri": 2, "regestrycontractseri": 2, "estimated_ga": 2, "requirementsseri": 2, "researchpurposeseri": 2, "restrictionsseri": 2, "secondarycategotyseri": 2, "open_to_genetic_studi": 2, "contractslistview": 2, "luceregistryview": 2, "while": 2, "luceregistri": 2, "contract": [2, 5], "failur": 2, "blockchain": [2, 3, 4], "requestdatasetview": 2, "dataset": 2, "access": 2, "authent": 2, "make": [2, 5], "registr": 2, "ethereum": 2, "extract": 2, "log": [2, 5], "relev": 2, "inform": 2, "public": 2, "each": 2, "http": [2, 5], "str": [2, 5], "respons": [2, 5], "either": 2, "transact": 2, "receipt": 2, "error": [2, 5], "request_access": 2, "c_address": 2, "research": 2, "purpos": 2, "assign": 2, "int": [2, 5], "bool": 2, "flag": 2, "determin": 2, "code": 2, "indic": 2, "union": 2, "list": 2, "retrievecontractbyuseridview": 2, "searchcontract": 2, "uploaddataview": 2, "get_luce_registri": 2, "is_luce_registry_deploi": 2, "packag": [3, 4], "healthcar": [3, 4], "lucehom": [], "modul": [3, 4], "privaci": [3, 4], "index": 3, "search": 3, "page": 3, "project": [], "gener": 5, "startproject": [], "2": [], "6": [], "For": 5, "more": [], "see": [], "doc": [], "djangoproject": [], "com": [], "en": [], "topic": [], "full": [], "ref": [], "config": [], "It": 5, "expos": 5, "callabl": [], "level": [], "variabl": [], "applic": [], "howto": [], "deploy": [], "subpackag": [], "submodul": 4, "content": 4, "app": 4, "form": 4, "serial": 4, "url": [4, 5], "view": 4, "singleton": [4, 5], "settings_psql": [], "wsgi": [], "api": 4, "disposable_address": 4, "snarkjs_servic": 4, "custom_exept": [], "web3_script": [], "generate_proof": 5, "privacyconfig": 5, "disposableaddressservic": 5, "servic": 5, "function": 5, "dispos": 5, "get_a_new_address": 5, "newli": 5, "get_a_new_address_with_bal": 5, "sender": 5, "transfer": 5, "balanc": 5, "mimicmixingservicecontract": 5, "store": 5, "mimicmixingservic": 5, "default_contract_nam": 5, "deposit": 5, "is_deploi": 5, "require_deploi": 5, "withdraw": 5, "dispossable_address": 5, "snarkjsservic": 5, "base_url": 5, "localhost": 5, "8888": 5, "blockchain_except": [], "tx_receipt": 2, "custom_exception_handl": [], "exc": [], "context": [], "custom_messag": [], "validation_exept": [], "format_error_blockchain": [], "format_error": [], "get_initial_respons": [], "set_logg": [], "assign_address_v3": [], "check_bal": [], "compile_and_extract_interfac": [], "interfac": 5, "compile_and_extract_interface_cons": [], "compile_and_extract_interface_main": [], "compile_and_extract_interface_registri": [], "_user": [], "deploy_cons": [], "deploy_contract_main": [], "getallrestrictionsandpurpos": [], "get_link": [], "receipt_to_dict": [], "registri": [], "send_eth": [], "amount_in_eth": [], "recipient_address": [], "sender_pkei": [], "consent_address": [], "sign_and_send": [], "contract_txn": [], "private_kei": [], "transact_funct": [], "func": [], "dictionari": [], "consent_obj": [], "deploy_consent_code_contract": 2, "deploy_dataset_contract": 2, "get_disposable_address": 2, "user_account": 2, "get_success_respons": 2, "handle_error": 2, "user_messag": 2, "log_messag": 2, "handle_smart_contract": 2, "initialize_seri": 2, "publish_data": 2, "update_consent_code_contract": 2, "snarkj": 5, "zero": 5, "knowledg": 5, "proof": 5, "zkp": 5, "allow": 5, "send": 5, "specifi": 5, "server": 5, "endpoint": 5, "receiv": 5, "pars": 5, "json": 5, "my_secret": 5, "compute_commit": 5, "retriev": 5, "detail": 5, "design": 5, "work": 5, "run": 5, "attribut": 5, "comput": 5, "take": 5, "success": 5, "occur": 5}, "objects": {"": [[0, 0, 0, "-", "accounts"], [1, 0, 0, "-", "blockchain"], [2, 0, 0, "-", "healthcare"], [5, 0, 0, "-", "privacy"]], "accounts": [[0, 0, 0, "-", "admin"], [0, 0, 0, "-", "apps"], [0, 0, 0, "-", "forms"], [0, 0, 0, "-", "models"], [0, 0, 0, "-", "serializers"], [0, 0, 0, "-", "urls"], [0, 0, 0, "-", "views"]], "accounts.admin": [[0, 1, 1, "", "UserAdmin"]], "accounts.admin.UserAdmin": [[0, 2, 1, "", "add_fieldsets"], [0, 2, 1, "", "add_form"], [0, 2, 1, "", "fieldsets"], [0, 2, 1, "", "filter_horizontal"], [0, 2, 1, "", "form"], [0, 2, 1, "", "list_display"], [0, 2, 1, "", "list_filter"], [0, 3, 1, "", "media"], [0, 2, 1, "", "ordering"], [0, 2, 1, "", "search_fields"]], "accounts.apps": [[0, 1, 1, "", "AccountsConfig"]], "accounts.apps.AccountsConfig": [[0, 2, 1, "", "name"]], "accounts.forms": [[0, 1, 1, "", "LoginForm"], [0, 1, 1, "", "RegisterForm"], [0, 1, 1, "", "UserAdminChangeForm"], [0, 1, 1, "", "UserAdminCreationForm"]], "accounts.forms.LoginForm": [[0, 2, 1, "", "base_fields"], [0, 2, 1, "", "declared_fields"], [0, 3, 1, "", "media"]], "accounts.forms.RegisterForm": [[0, 1, 1, "", "Meta"], [0, 2, 1, "", "base_fields"], [0, 4, 1, "", "clean_email"], [0, 4, 1, "", "clean_password2"], [0, 2, 1, "", "declared_fields"], [0, 3, 1, "", "media"], [0, 4, 1, "", "save"]], "accounts.forms.RegisterForm.Meta": [[0, 2, 1, "", "fields"], [0, 2, 1, "", "model"]], "accounts.forms.UserAdminChangeForm": [[0, 1, 1, "", "Meta"], [0, 2, 1, "", "base_fields"], [0, 4, 1, "", "clean_password"], [0, 2, 1, "", "declared_fields"], [0, 3, 1, "", "media"]], "accounts.forms.UserAdminChangeForm.Meta": [[0, 2, 1, "", "fields"], [0, 2, 1, "", "model"]], "accounts.forms.UserAdminCreationForm": [[0, 1, 1, "", "Meta"], [0, 2, 1, "", "base_fields"], [0, 4, 1, "", "clean_password2"], [0, 2, 1, "", "declared_fields"], [0, 3, 1, "", "media"], [0, 4, 1, "", "save"]], "accounts.forms.UserAdminCreationForm.Meta": [[0, 2, 1, "", "fields"], [0, 2, 1, "", "model"]], "accounts.models": [[0, 1, 1, "", "User"], [0, 1, 1, "", "UserManager"]], "accounts.models.User": [[0, 5, 1, "", "DoesNotExist"], [0, 5, 1, "", "MultipleObjectsReturned"], [0, 2, 1, "", "REQUIRED_FIELDS"], [0, 2, 1, "", "USERNAME_FIELD"], [0, 2, 1, "", "active"], [0, 2, 1, "", "admin"], [0, 2, 1, "", "age"], [0, 2, 1, "", "auth_token"], [0, 2, 1, "", "consentcontract_set"], [0, 2, 1, "", "country"], [0, 4, 1, "", "create_wallet"], [0, 2, 1, "", "datacontract_set"], [0, 2, 1, "", "email"], [0, 2, 1, "", "ethereum_private_key"], [0, 2, 1, "", "ethereum_public_key"], [0, 2, 1, "", "first_name"], [0, 2, 1, "", "gender"], [0, 4, 1, "", "get_full_name"], [0, 4, 1, "", "get_gender_display"], [0, 4, 1, "", "get_short_name"], [0, 4, 1, "", "get_user_type_display"], [0, 4, 1, "", "has_module_perms"], [0, 4, 1, "", "has_perm"], [0, 2, 1, "", "id"], [0, 2, 1, "", "institution"], [0, 3, 1, "", "is_active"], [0, 3, 1, "", "is_admin"], [0, 2, 1, "", "is_approved"], [0, 3, 1, "", "is_staff"], [0, 2, 1, "", "last_login"], [0, 2, 1, "", "last_name"], [0, 2, 1, "", "logentry_set"], [0, 2, 1, "", "luceregistrycontract_set"], [0, 2, 1, "", "objects"], [0, 2, 1, "", "password"], [0, 2, 1, "", "staff"], [0, 2, 1, "", "user_type"]], "accounts.models.UserManager": [[0, 4, 1, "", "create_auth_token"], [0, 4, 1, "", "create_staffuser"], [0, 4, 1, "", "create_superuser"], [0, 4, 1, "", "create_user"]], "accounts.serializers": [[0, 1, 1, "", "PublicUserSerializer"], [0, 1, 1, "", "UserSerializer"]], "accounts.serializers.PublicUserSerializer": [[0, 1, 1, "", "Meta"]], "accounts.serializers.PublicUserSerializer.Meta": [[0, 2, 1, "", "fields"], [0, 2, 1, "", "model"]], "accounts.serializers.UserSerializer": [[0, 1, 1, "", "Meta"], [0, 4, 1, "", "create"], [0, 4, 1, "", "update"], [0, 4, 1, "", "validate"]], "accounts.serializers.UserSerializer.Meta": [[0, 2, 1, "", "fields"], [0, 2, 1, "", "model"]], "accounts.views": [[0, 1, 1, "", "ObtainAuthToken"], [0, 1, 1, "", "PrivateUserInfoView"], [0, 1, 1, "", "PublicUserInfoView"], [0, 1, 1, "", "UserListView"], [0, 1, 1, "", "UserRegistration"], [0, 1, 1, "", "UserUpdateView"]], "accounts.views.ObtainAuthToken": [[0, 4, 1, "", "get_serializer"], [0, 4, 1, "", "get_serializer_context"], [0, 2, 1, "", "parser_classes"], [0, 2, 1, "", "permission_classes"], [0, 4, 1, "", "post"], [0, 2, 1, "", "renderer_classes"], [0, 2, 1, "", "serializer_class"], [0, 2, 1, "", "throttle_classes"]], "accounts.views.PrivateUserInfoView": [[0, 4, 1, "", "get"], [0, 2, 1, "", "permission_classes"]], "accounts.views.PublicUserInfoView": [[0, 4, 1, "", "get"], [0, 4, 1, "", "get_object"]], "accounts.views.UserListView": [[0, 4, 1, "", "get"]], "accounts.views.UserRegistration": [[0, 4, 1, "", "address_get_or_create"], [0, 4, 1, "", "post"]], "accounts.views.UserUpdateView": [[0, 4, 1, "", "address_get_or_create"], [0, 2, 1, "", "permission_classes"], [0, 4, 1, "", "put"]], "blockchain": [[1, 0, 0, "-", "admin"], [1, 0, 0, "-", "apps"], [1, 0, 0, "-", "models"], [1, 0, 0, "-", "singleton"], [1, 0, 0, "-", "views"]], "blockchain.apps": [[1, 1, 1, "", "BlockchainConfig"]], "blockchain.apps.BlockchainConfig": [[1, 2, 1, "", "name"]], "blockchain.models": [[1, 1, 1, "", "ClinicalPurpose"], [1, 1, 1, "", "ConsentContract"], [1, 1, 1, "", "DataContract"], [1, 1, 1, "", "GeneralResearchPurpose"], [1, 1, 1, "", "HMBResearchPurpose"], [1, 1, 1, "", "LuceRegistryContract"], [1, 1, 1, "", "PlonkVerifierContract"], [1, 1, 1, "", "PrimaryCategory"], [1, 1, 1, "", "Requirements"], [1, 1, 1, "", "ResearchPurpose"], [1, 1, 1, "", "Restrictions"], [1, 1, 1, "", "SecondaryCategory"]], "blockchain.models.ClinicalPurpose": [[1, 5, 1, "", "DoesNotExist"], [1, 5, 1, "", "MultipleObjectsReturned"], [1, 2, 1, "", "id"], [1, 2, 1, "", "objects"], [1, 2, 1, "", "researchpurpose_set"], [1, 2, 1, "", "use_for_decision_support"], [1, 2, 1, "", "use_for_disease_support"]], "blockchain.models.ConsentContract": [[1, 5, 1, "", "DoesNotExist"], [1, 5, 1, "", "MultipleObjectsReturned"], [1, 2, 1, "", "contract_address"], [1, 2, 1, "", "datacontract_set"], [1, 4, 1, "", "deploy"], [1, 4, 1, "", "deploy_contract"], [1, 4, 1, "", "get_a_new_account"], [1, 4, 1, "", "give_HMB_research_purpose"], [1, 4, 1, "", "give_clinical_research_purpose"], [1, 4, 1, "", "give_general_research_purpose"], [1, 2, 1, "", "id"], [1, 2, 1, "", "objects"], [1, 2, 1, "", "research_purpose"], [1, 2, 1, "", "research_purpose_id"], [1, 2, 1, "", "restrictions"], [1, 2, 1, "", "restrictions_id"], [1, 4, 1, "", "retrieve_contract_owner"], [1, 4, 1, "", "update_data_consent"], [1, 4, 1, "", "upload_data_consent"], [1, 2, 1, "", "user"], [1, 2, 1, "", "user_id"]], "blockchain.models.DataContract": [[1, 5, 1, "", "DoesNotExist"], [1, 5, 1, "", "MultipleObjectsReturned"], [1, 4, 1, "", "add_data_requester"], [1, 4, 1, "", "checkAccess"], [1, 2, 1, "", "commitment"], [1, 2, 1, "", "consent_contract"], [1, 2, 1, "", "consent_contract_id"], [1, 2, 1, "", "contract_address"], [1, 4, 1, "", "deploy"], [1, 4, 1, "", "deploy_contract"], [1, 2, 1, "", "description"], [1, 4, 1, "", "getLink"], [1, 4, 1, "", "get_a_new_account"], [1, 4, 1, "", "get_commitment"], [1, 2, 1, "", "id"], [1, 2, 1, "", "licence"], [1, 2, 1, "", "link"], [1, 2, 1, "", "objects"], [1, 4, 1, "", "publish_dataset"], [1, 4, 1, "", "require_verifier_deployed"], [1, 4, 1, "", "retreive_info"], [1, 4, 1, "", "set_consent_address"], [1, 4, 1, "", "set_registry_address"], [1, 2, 1, "", "user"], [1, 2, 1, "", "user_id"]], "blockchain.models.GeneralResearchPurpose": [[1, 5, 1, "", "DoesNotExist"], [1, 5, 1, "", "MultipleObjectsReturned"], [1, 2, 1, "", "id"], [1, 2, 1, "", "objects"], [1, 2, 1, "", "researchpurpose_set"], [1, 2, 1, "", "use_for_biomedical_research"], [1, 2, 1, "", "use_for_methods_development"], [1, 2, 1, "", "use_for_reference_or_control_material"], [1, 2, 1, "", "use_for_research_ancestry"], [1, 2, 1, "", "use_for_research_concerning_populations"]], "blockchain.models.HMBResearchPurpose": [[1, 5, 1, "", "DoesNotExist"], [1, 5, 1, "", "MultipleObjectsReturned"], [1, 2, 1, "", "id"], [1, 2, 1, "", "objects"], [1, 2, 1, "", "researchpurpose_set"], [1, 2, 1, "", "use_for_research_concerning_age_categories"], [1, 2, 1, "", "use_for_research_concerning_any_disease"], [1, 2, 1, "", "use_for_research_concerning_drug_development"], [1, 2, 1, "", "use_for_research_concerning_fundamental_biology"], [1, 2, 1, "", "use_for_research_concerning_gender_categories"], [1, 2, 1, "", "use_for_research_concerning_genetics"]], "blockchain.models.LuceRegistryContract": [[1, 5, 1, "", "DoesNotExist"], [1, 5, 1, "", "MultipleObjectsReturned"], [1, 2, 1, "", "contract_address"], [1, 4, 1, "", "deploy"], [1, 4, 1, "", "deploy_contract"], [1, 2, 1, "", "id"], [1, 4, 1, "", "is_registered"], [1, 4, 1, "", "is_registered_as_requester"], [1, 2, 1, "", "objects"], [1, 4, 1, "", "register_provider"], [1, 4, 1, "", "register_requester"], [1, 2, 1, "", "user"], [1, 2, 1, "", "user_id"]], "blockchain.models.PlonkVerifierContract": [[1, 5, 1, "", "DoesNotExist"], [1, 5, 1, "", "MultipleObjectsReturned"], [1, 2, 1, "", "address"], [1, 4, 1, "", "deploy"], [1, 2, 1, "", "id"], [1, 2, 1, "", "name"], [1, 2, 1, "", "objects"], [1, 4, 1, "", "save"]], "blockchain.models.PrimaryCategory": [[1, 5, 1, "", "DoesNotExist"], [1, 5, 1, "", "MultipleObjectsReturned"], [1, 2, 1, "", "id"], [1, 2, 1, "", "no_restrictions"], [1, 2, 1, "", "objects"], [1, 2, 1, "", "open_to_HMB_research"], [1, 2, 1, "", "open_to_disease_specific"], [1, 2, 1, "", "open_to_general_research_and_clinical_care"], [1, 2, 1, "", "open_to_population_and_ancestry_research"]], "blockchain.models.Requirements": [[1, 5, 1, "", "DoesNotExist"], [1, 5, 1, "", "MultipleObjectsReturned"], [1, 2, 1, "", "collaboration_required"], [1, 2, 1, "", "cost_on_use"], [1, 2, 1, "", "data_security_measures_required"], [1, 2, 1, "", "ethics_approval_required"], [1, 2, 1, "", "geographic_specific_restriction"], [1, 2, 1, "", "id"], [1, 2, 1, "", "objects"], [1, 2, 1, "", "open_to_non_profit_use_only"], [1, 2, 1, "", "publication_required"], [1, 2, 1, "", "time_limit_on_use"]], "blockchain.models.ResearchPurpose": [[1, 5, 1, "", "DoesNotExist"], [1, 2, 1, "", "HMB_research_purpose"], [1, 2, 1, "", "HMB_research_purpose_id"], [1, 5, 1, "", "MultipleObjectsReturned"], [1, 2, 1, "", "clinical_purpose"], [1, 2, 1, "", "clinical_purpose_id"], [1, 2, 1, "", "consentcontract_set"], [1, 2, 1, "", "general_research_purpose"], [1, 2, 1, "", "general_research_purpose_id"], [1, 2, 1, "", "id"], [1, 2, 1, "", "objects"]], "blockchain.models.Restrictions": [[1, 5, 1, "", "DoesNotExist"], [1, 5, 1, "", "MultipleObjectsReturned"], [1, 2, 1, "", "consentcontract_set"], [1, 2, 1, "", "id"], [1, 2, 1, "", "no_restrictions"], [1, 2, 1, "", "objects"], [1, 2, 1, "", "open_to_HMB_research"], [1, 2, 1, "", "open_to_disease_specific"], [1, 2, 1, "", "open_to_general_research_and_clinical_care"], [1, 2, 1, "", "open_to_population_and_ancestry_research"]], "blockchain.models.SecondaryCategory": [[1, 5, 1, "", "DoesNotExist"], [1, 5, 1, "", "MultipleObjectsReturned"], [1, 2, 1, "", "id"], [1, 2, 1, "", "no_general_method_research"], [1, 2, 1, "", "objects"], [1, 2, 1, "", "open_to_genetic_studies_only"], [1, 2, 1, "", "open_to_research_use_only"], [1, 2, 1, "", "research_specific_restrictions"]], "blockchain.singleton": [[1, 1, 1, "", "SingletonContractModel"], [1, 1, 1, "", "SingletonModel"]], "blockchain.singleton.SingletonContractModel": [[1, 1, 1, "", "Meta"], [1, 2, 1, "", "contract_address"], [1, 2, 1, "", "contract_name"], [1, 4, 1, "", "deploy"], [1, 4, 1, "", "load"]], "blockchain.singleton.SingletonContractModel.Meta": [[1, 2, 1, "", "abstract"]], "blockchain.singleton.SingletonModel": [[1, 1, 1, "", "Meta"], [1, 4, 1, "", "load"], [1, 4, 1, "", "save"]], "blockchain.singleton.SingletonModel.Meta": [[1, 2, 1, "", "abstract"]], "healthcare": [[2, 0, 0, "-", "admin"], [2, 0, 0, "-", "apps"], [2, 0, 0, "-", "models"], [2, 0, 0, "-", "serializers"], [2, 0, 0, "-", "urls"], [2, 0, 0, "-", "views"]], "healthcare.apps": [[2, 1, 1, "", "healthcareConfig"]], "healthcare.apps.healthcareConfig": [[2, 2, 1, "", "name"]], "healthcare.serializers": [[2, 1, 1, "", "ClinicalPurposeSerializer"], [2, 1, 1, "", "ConsentContractSerializer"], [2, 1, 1, "", "DataContractSerializer"], [2, 1, 1, "", "GeneralResearchPurposeSerializer"], [2, 1, 1, "", "HMBResearchPurposeSerializer"], [2, 1, 1, "", "PrimaryCategotySerializer"], [2, 1, 1, "", "RegestryContractSerializer"], [2, 1, 1, "", "RequirementsSerializer"], [2, 1, 1, "", "ResearchPurposeSerializer"], [2, 1, 1, "", "RestrictionsSerializer"], [2, 1, 1, "", "SecondaryCategotySerializer"]], "healthcare.serializers.ClinicalPurposeSerializer": [[2, 1, 1, "", "Meta"]], "healthcare.serializers.ClinicalPurposeSerializer.Meta": [[2, 2, 1, "", "fields"], [2, 2, 1, "", "model"]], "healthcare.serializers.ConsentContractSerializer": [[2, 2, 1, "", "DEPLOYMENT_COST"], [2, 1, 1, "", "Meta"], [2, 4, 1, "", "create"]], "healthcare.serializers.ConsentContractSerializer.Meta": [[2, 2, 1, "", "fields"], [2, 2, 1, "", "model"]], "healthcare.serializers.DataContractSerializer": [[2, 2, 1, "", "DEPLOYMENT_COST"], [2, 1, 1, "", "Meta"], [2, 4, 1, "", "create"], [2, 4, 1, "", "validate"]], "healthcare.serializers.DataContractSerializer.Meta": [[2, 2, 1, "", "fields"], [2, 2, 1, "", "model"]], "healthcare.serializers.GeneralResearchPurposeSerializer": [[2, 1, 1, "", "Meta"]], "healthcare.serializers.GeneralResearchPurposeSerializer.Meta": [[2, 2, 1, "", "fields"], [2, 2, 1, "", "model"]], "healthcare.serializers.HMBResearchPurposeSerializer": [[2, 1, 1, "", "Meta"]], "healthcare.serializers.HMBResearchPurposeSerializer.Meta": [[2, 2, 1, "", "fields"], [2, 2, 1, "", "model"]], "healthcare.serializers.PrimaryCategotySerializer": [[2, 1, 1, "", "Meta"]], "healthcare.serializers.PrimaryCategotySerializer.Meta": [[2, 2, 1, "", "fields"], [2, 2, 1, "", "model"]], "healthcare.serializers.RegestryContractSerializer": [[2, 1, 1, "", "Meta"], [2, 2, 1, "", "estimated_gas"]], "healthcare.serializers.RegestryContractSerializer.Meta": [[2, 2, 1, "", "fields"], [2, 2, 1, "", "model"]], "healthcare.serializers.RequirementsSerializer": [[2, 1, 1, "", "Meta"]], "healthcare.serializers.RequirementsSerializer.Meta": [[2, 2, 1, "", "fields"], [2, 2, 1, "", "model"]], "healthcare.serializers.ResearchPurposeSerializer": [[2, 1, 1, "", "Meta"], [2, 4, 1, "", "create"]], "healthcare.serializers.ResearchPurposeSerializer.Meta": [[2, 2, 1, "", "fields"], [2, 2, 1, "", "model"]], "healthcare.serializers.RestrictionsSerializer": [[2, 1, 1, "", "Meta"]], "healthcare.serializers.RestrictionsSerializer.Meta": [[2, 2, 1, "", "fields"], [2, 2, 1, "", "model"]], "healthcare.serializers.SecondaryCategotySerializer": [[2, 1, 1, "", "Meta"]], "healthcare.serializers.SecondaryCategotySerializer.Meta": [[2, 2, 1, "", "fields"], [2, 2, 1, "", "model"]], "healthcare.views": [[2, 1, 1, "", "ContractsListView"], [2, 1, 1, "", "GetLink"], [2, 1, 1, "", "LuceRegistryView"], [2, 1, 1, "", "RequestDatasetView"], [2, 1, 1, "", "RetrieveContractByUserIDView"], [2, 1, 1, "", "SearchContract"], [2, 1, 1, "", "UploadDataView"]], "healthcare.views.ContractsListView": [[2, 4, 1, "", "get"]], "healthcare.views.GetLink": [[2, 2, 1, "", "permission_classes"], [2, 4, 1, "", "post"]], "healthcare.views.LuceRegistryView": [[2, 4, 1, "", "get"], [2, 2, 1, "", "permission_classes"], [2, 4, 1, "", "post"]], "healthcare.views.RequestDatasetView": [[2, 2, 1, "", "permission_classes"], [2, 4, 1, "", "post"], [2, 4, 1, "", "request_access"]], "healthcare.views.RetrieveContractByUserIDView": [[2, 4, 1, "", "get"]], "healthcare.views.SearchContract": [[2, 2, 1, "", "permission_classes"], [2, 4, 1, "", "post"]], "healthcare.views.UploadDataView": [[2, 4, 1, "", "deploy_consent_code_contract"], [2, 4, 1, "", "deploy_dataset_contract"], [2, 4, 1, "", "get"], [2, 4, 1, "", "get_disposable_address"], [2, 4, 1, "", "get_luce_registry"], [2, 4, 1, "", "get_success_response"], [2, 4, 1, "", "handle_error"], [2, 4, 1, "", "handle_smart_contracts"], [2, 4, 1, "", "initialize_serializers"], [2, 4, 1, "", "is_luce_registry_deployed"], [2, 2, 1, "", "permission_classes"], [2, 4, 1, "", "post"], [2, 4, 1, "", "publish_data"], [2, 4, 1, "", "set_consent_address"], [2, 4, 1, "", "set_registry_address"], [2, 4, 1, "", "update_consent_code_contract"]], "privacy": [[5, 0, 0, "-", "admin"], [5, 0, 0, "-", "api"], [5, 0, 0, "-", "apps"], [5, 0, 0, "-", "disposable_address"], [5, 0, 0, "-", "models"], [5, 0, 0, "-", "snarkjs_service"], [5, 0, 0, "-", "utils"], [5, 0, 0, "-", "views"]], "privacy.api": [[5, 6, 1, "", "generate_proof"]], "privacy.apps": [[5, 1, 1, "", "PrivacyConfig"]], "privacy.apps.PrivacyConfig": [[5, 2, 1, "", "name"]], "privacy.disposable_address": [[5, 1, 1, "", "DisposableAddressService"]], "privacy.disposable_address.DisposableAddressService": [[5, 4, 1, "", "get_a_new_address"], [5, 4, 1, "", "get_a_new_address_with_balance"]], "privacy.models": [[5, 1, 1, "", "MimicMixingServiceContract"]], "privacy.models.MimicMixingServiceContract": [[5, 5, 1, "", "DoesNotExist"], [5, 5, 1, "", "MultipleObjectsReturned"], [5, 4, 1, "", "balance"], [5, 2, 1, "", "contract_address"], [5, 2, 1, "", "contract_name"], [5, 2, 1, "", "default_contract_name"], [5, 4, 1, "", "deploy"], [5, 4, 1, "", "deposit"], [5, 2, 1, "", "id"], [5, 4, 1, "", "is_deployed"], [5, 2, 1, "", "objects"], [5, 4, 1, "", "require_deployed"], [5, 4, 1, "", "withdraw"]], "privacy.snarkjs_service": [[5, 1, 1, "", "SnarkjsService"]], "privacy.snarkjs_service.SnarkjsService": [[5, 4, 1, "", "generate_proof"]]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:attribute", "3": "py:property", "4": "py:method", "5": "py:exception", "6": "py:function"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "attribute", "Python attribute"], "3": ["py", "property", "Python property"], "4": ["py", "method", "Python method"], "5": ["py", "exception", "Python exception"], "6": ["py", "function", "Python function"]}, "titleterms": {"account": 0, "packag": [0, 1, 2, 5], "subpackag": [], "submodul": [0, 1, 2, 5], "admin": [0, 1, 2, 5], "modul": [0, 1, 2, 5], "app": [0, 1, 2, 5], "form": 0, "model": [0, 1, 2, 5], "serial": [0, 2], "url": [0, 2], "view": [0, 1, 2, 5], "content": [0, 1, 2, 3, 5], "migrat": [], "0001_initi": [], "test": [], "test_registr": [], "blockchain": 1, "singleton": 1, "0002_consentcontract_research_purpos": [], "test_consentcontract": [], "test_datacontract": [], "test_luceregistrycontract": [], "test_luceregistrycontractsingleton": [], "test_plonkverifiercontract": [], "healthcar": 2, "welcom": 3, "luce": [3, 4], "s": 3, "document": 3, "indic": 3, "tabl": 3, "lucehom": [], "set": [], "settings_psql": [], "wsgi": [], "manag": [], "privaci": 5, "api": 5, "disposable_address": 5, "snarkjs_servic": 5, "util": 5, "custom_exept": [], "web3_script": [], "data": []}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 6, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 56}}) \ No newline at end of file diff --git a/docs/source/accounts.migrations.rst b/docs/source/accounts.migrations.rst deleted file mode 100644 index 7ec3644..0000000 --- a/docs/source/accounts.migrations.rst +++ /dev/null @@ -1,21 +0,0 @@ -accounts.migrations package -=========================== - -Submodules ----------- - -accounts.migrations.0001\_initial module ----------------------------------------- - -.. automodule:: accounts.migrations.0001_initial - :members: - :undoc-members: - :show-inheritance: - -Module contents ---------------- - -.. automodule:: accounts.migrations - :members: - :undoc-members: - :show-inheritance: diff --git a/docs/source/accounts.rst b/docs/source/accounts.rst index 46013f5..64e3712 100644 --- a/docs/source/accounts.rst +++ b/docs/source/accounts.rst @@ -1,15 +1,6 @@ accounts package ================ -Subpackages ------------ - -.. toctree:: - :maxdepth: 4 - - accounts.migrations - accounts.tests - Submodules ---------- diff --git a/docs/source/accounts.tests.rst b/docs/source/accounts.tests.rst deleted file mode 100644 index 796898a..0000000 --- a/docs/source/accounts.tests.rst +++ /dev/null @@ -1,21 +0,0 @@ -accounts.tests package -====================== - -Submodules ----------- - -accounts.tests.test\_Registration module ----------------------------------------- - -.. automodule:: accounts.tests.test_Registration - :members: - :undoc-members: - :show-inheritance: - -Module contents ---------------- - -.. automodule:: accounts.tests - :members: - :undoc-members: - :show-inheritance: diff --git a/docs/source/blockchain.migrations.rst b/docs/source/blockchain.migrations.rst deleted file mode 100644 index fd8e5f0..0000000 --- a/docs/source/blockchain.migrations.rst +++ /dev/null @@ -1,29 +0,0 @@ -blockchain.migrations package -============================= - -Submodules ----------- - -blockchain.migrations.0001\_initial module ------------------------------------------- - -.. automodule:: blockchain.migrations.0001_initial - :members: - :undoc-members: - :show-inheritance: - -blockchain.migrations.0002\_consentcontract\_research\_purpose module ---------------------------------------------------------------------- - -.. automodule:: blockchain.migrations.0002_consentcontract_research_purpose - :members: - :undoc-members: - :show-inheritance: - -Module contents ---------------- - -.. automodule:: blockchain.migrations - :members: - :undoc-members: - :show-inheritance: diff --git a/docs/source/blockchain.rst b/docs/source/blockchain.rst index c921180..402a314 100644 --- a/docs/source/blockchain.rst +++ b/docs/source/blockchain.rst @@ -1,15 +1,6 @@ blockchain package ================== -Subpackages ------------ - -.. toctree:: - :maxdepth: 4 - - blockchain.migrations - blockchain.tests - Submodules ---------- diff --git a/docs/source/blockchain.tests.rst b/docs/source/blockchain.tests.rst deleted file mode 100644 index 60f2b76..0000000 --- a/docs/source/blockchain.tests.rst +++ /dev/null @@ -1,45 +0,0 @@ -blockchain.tests package -======================== - -Submodules ----------- - -blockchain.tests.test\_ConsentContract module ---------------------------------------------- - -.. automodule:: blockchain.tests.test_ConsentContract - :members: - :undoc-members: - :show-inheritance: - -blockchain.tests.test\_DataContract module ------------------------------------------- - -.. automodule:: blockchain.tests.test_DataContract - :members: - :undoc-members: - :show-inheritance: - -blockchain.tests.test\_LuceRegistryContract module --------------------------------------------------- - -.. automodule:: blockchain.tests.test_LuceRegistryContract - :members: - :undoc-members: - :show-inheritance: - -blockchain.tests.test\_PlonkVerifierContract module ---------------------------------------------------- - -.. automodule:: blockchain.tests.test_PlonkVerifierContract - :members: - :undoc-members: - :show-inheritance: - -Module contents ---------------- - -.. automodule:: blockchain.tests - :members: - :undoc-members: - :show-inheritance: diff --git a/docs/source/lucehome.rst b/docs/source/lucehome.rst deleted file mode 100644 index be3812a..0000000 --- a/docs/source/lucehome.rst +++ /dev/null @@ -1,61 +0,0 @@ -lucehome package -================ - -Submodules ----------- - -lucehome.settings module ------------------------- - -.. automodule:: lucehome.settings - :members: - :undoc-members: - :show-inheritance: - -lucehome.settings\_psql module ------------------------------- - -.. automodule:: lucehome.settings_psql - :members: - :undoc-members: - :show-inheritance: - -lucehome.test module --------------------- - -.. automodule:: lucehome.test - :members: - :undoc-members: - :show-inheritance: - -lucehome.urls module --------------------- - -.. automodule:: lucehome.urls - :members: - :undoc-members: - :show-inheritance: - -lucehome.views module ---------------------- - -.. automodule:: lucehome.views - :members: - :undoc-members: - :show-inheritance: - -lucehome.wsgi module --------------------- - -.. automodule:: lucehome.wsgi - :members: - :undoc-members: - :show-inheritance: - -Module contents ---------------- - -.. automodule:: lucehome - :members: - :undoc-members: - :show-inheritance: diff --git a/docs/source/manage.rst b/docs/source/manage.rst deleted file mode 100644 index 776b9e3..0000000 --- a/docs/source/manage.rst +++ /dev/null @@ -1,7 +0,0 @@ -manage module -============= - -.. automodule:: manage - :members: - :undoc-members: - :show-inheritance: diff --git a/docs/source/modules.rst b/docs/source/modules.rst index b28043e..ab337a5 100644 --- a/docs/source/modules.rst +++ b/docs/source/modules.rst @@ -7,7 +7,4 @@ luce accounts blockchain healthcare - lucehome - manage privacy - utils diff --git a/docs/source/privacy.migrations.rst b/docs/source/privacy.migrations.rst deleted file mode 100644 index dacbad7..0000000 --- a/docs/source/privacy.migrations.rst +++ /dev/null @@ -1,21 +0,0 @@ -privacy.migrations package -========================== - -Submodules ----------- - -privacy.migrations.0001\_initial module ---------------------------------------- - -.. automodule:: privacy.migrations.0001_initial - :members: - :undoc-members: - :show-inheritance: - -Module contents ---------------- - -.. automodule:: privacy.migrations - :members: - :undoc-members: - :show-inheritance: diff --git a/docs/source/privacy.rst b/docs/source/privacy.rst index a177a17..b9fe4ed 100644 --- a/docs/source/privacy.rst +++ b/docs/source/privacy.rst @@ -1,14 +1,6 @@ privacy package =============== -Subpackages ------------ - -.. toctree:: - :maxdepth: 4 - - privacy.migrations - Submodules ---------- diff --git a/docs/source/utils.data.rst b/docs/source/utils.data.rst deleted file mode 100644 index d93d4ed..0000000 --- a/docs/source/utils.data.rst +++ /dev/null @@ -1,10 +0,0 @@ -utils.data package -================== - -Module contents ---------------- - -.. automodule:: utils.data - :members: - :undoc-members: - :show-inheritance: diff --git a/docs/source/utils.rst b/docs/source/utils.rst deleted file mode 100644 index 8423e21..0000000 --- a/docs/source/utils.rst +++ /dev/null @@ -1,45 +0,0 @@ -utils package -============= - -Subpackages ------------ - -.. toctree:: - :maxdepth: 4 - - utils.data - -Submodules ----------- - -utils.custom\_exeptions module ------------------------------- - -.. automodule:: utils.custom_exeptions - :members: - :undoc-members: - :show-inheritance: - -utils.utils module ------------------- - -.. automodule:: utils.utils - :members: - :undoc-members: - :show-inheritance: - -utils.web3\_scripts module --------------------------- - -.. automodule:: utils.web3_scripts - :members: - :undoc-members: - :show-inheritance: - -Module contents ---------------- - -.. automodule:: utils - :members: - :undoc-members: - :show-inheritance: diff --git a/luce_vm/luce_django/luce/lucehome/settings.py b/luce_vm/luce_django/luce/lucehome/settings.py index 33373e9..48535d4 100644 --- a/luce_vm/luce_django/luce/lucehome/settings.py +++ b/luce_vm/luce_django/luce/lucehome/settings.py @@ -25,8 +25,10 @@ p.load_config() if 'test' in sys.argv: network.connect('development') -else: +elif 'runserver' in sys.argv: network.connect('luce') +else: + print("Just doing some tasks, not connecting to network") # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))