How to write login.ini - hello31337/BI-SGX GitHub Wiki

To login/register to BI-SGX and designate processes to request to BI-SGX, clients have to prepare dedicated login context file named login.ini.

Format of login.ini

Line 1 to Line3 of login.ini are common parts of login.ini. Both data owners and researchers must write username, password and user mode like following:

SampleUserName
SamplePassword1234
O

If you write O in Line 3, it means you will login/register as data owner, who can mainly use cloud storage features. On the other hand, if you write R, you can login as researcher, who can mainly use interpreter for secret computation.

You don't have to take care of anything whether you want to login or register when you like login.ini. If you newly register, ISV will automatically register the username, password and user mode following the description in login.ini. When you have already registered and you'd like to login, ISV (server) will process login. If you wrote wrong password, you will get error message immediately.

If you login as researcher, you don't have to write additional options anymore. If you are data owner, you have to write option in write. If you require to upload your file, you have to designate the type of your data to upload from following:

  • integer: Set of integers. Each integers must be divided by newline. The size of data to upload must be 10MB or less.
  • genome: Set of strings which consisted with A, T, C, G. Each integers must be divided by newline. The size of data to upload must be 10MB or less.
  • FASTA: Set of amino acid sequences which are expressed in FASTA format. The size of data to upload must be 10MB or less.
  • VCF: The data which are expressed in Variant Call Format (VCF). There are no size limit of file to upload if you select this option.

If you request to inquiry your data which you have already uploaded, write `inquiry` in Line 4. In this case, you can get list of dataset names which are automatically named in ascending order. When you'd like to download your data, write `download` in Line 4 and the name of dataset which you'd like to download in Line 5.

examples

Researcher

SampleUsernameResearcher
SamplePassword11111
R

Dataowner (Upload)

SampleUsernameDataOwner
SamplePassword22222
O
integer

Dataowner (Download)

SampleUsernameDataOwner
SamplePassword22222
O
download
dataset3
⚠️ **GitHub.com Fallback** ⚠️