Queries on Encrypted Data Library

Gentoken Command

	gentoken token_file privkey_file hvecontent_file

Description:

Generate a query token with the private key generated in setup and a specific query input.


Parameter Files:

  • token_file:

  • When gentoken completes, this file will contain a serialized QED token.
    Use this file when calling the query command.

  • privkey_file:

  • This file should have been generated by calling setup.

  • hvecontent_file:

  • Each line of this file will specify the data for a specific sector of the query.

    NOTE:
    If you are not the party that runs the setup algorithm, you will need to get the following information:
  • File containing a serialized QED private key
  • Number of queries, i.e. number of HVE sectors
  • For each sector what type of query it holds



  • Example of hvecontent_file:
    (This example builds on the one given in setup section.)
    C 3 0
    E hello 1
    S foo bar 2
    

    The above three lines will populate the predefined query as follows:


    NOTE: The three lines in the hvecontent_file can be written in any order, as long as the sector index, i.e. the last integer value in each line, is kept the same. For example the following will also work:
    S foo bar 2
    C 3 0
    E hello 1