-
Notifications
You must be signed in to change notification settings - Fork 1
/
RUN_DB_commands.csh
18 lines (13 loc) · 1002 Bytes
/
RUN_DB_commands.csh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Create RunTime.db (if it doesn't exist) and these tables
sqlite3 RunTime.db < SQLSchemaScripts/SQL_Bitstrings_create_table.sql
# ZeroTrust
sqlite3 AuthenticationToken.db < SQLSchemaScripts/SQL_ZeroTrustAuthenToken_create_table.sql
# LLK stores chip numbers, challenge fields OR LLKs for Alice and TI, respectively, and type and status.
# WRec stores anonymous chip numbers LLK_id link to LLK table, eCt, heCt, the number of eCt and status
# Account used by TTP (commercial Bank) to store Account information for Alice/Bob.
sqlite3 PUFCash_V3.db < SQLSchemaScripts/SQL_PUFCash_LLK_create_table.sql
sqlite3 PUFCash_V3.db < SQLSchemaScripts/SQL_PUFCash_WRec_create_table.sql
sqlite3 PUFCash_V3.db < SQLSchemaScripts/SQL_PUFCash_Account_create_table.sql
sqlite3 PUFCash_V3_empty.db < SQLSchemaScripts/SQL_PUFCash_LLK_create_table.sql
sqlite3 PUFCash_V3_empty.db < SQLSchemaScripts/SQL_PUFCash_WRec_create_table.sql
sqlite3 PUFCash_V3_empty.db < SQLSchemaScripts/SQL_PUFCash_Account_create_table.sql