-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c6b3f1
commit a5bbca7
Showing
5 changed files
with
445 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
crates/cdk-sqlite/src/mint/auth/migrations/20250109143347_init.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
CREATE TABLE IF NOT EXISTS proof ( | ||
y BLOB PRIMARY KEY, | ||
keyset_id TEXT NOT NULL, | ||
secret TEXT NOT NULL, | ||
c BLOB NOT NULL, | ||
state TEXT NOT NULL | ||
); | ||
|
||
CREATE INDEX IF NOT EXISTS state_index ON proof(state); | ||
CREATE INDEX IF NOT EXISTS secret_index ON proof(secret); | ||
|
||
|
||
-- Keysets Table | ||
|
||
CREATE TABLE IF NOT EXISTS keyset ( | ||
id TEXT PRIMARY KEY, | ||
unit TEXT NOT NULL, | ||
active BOOL NOT NULL, | ||
valid_from INTEGER NOT NULL, | ||
valid_to INTEGER, | ||
derivation_path TEXT NOT NULL, | ||
max_order INTEGER NOT NULL, | ||
derivation_path_index INTEGER NOT NULL | ||
); | ||
|
||
CREATE INDEX IF NOT EXISTS unit_index ON keyset(unit); | ||
CREATE INDEX IF NOT EXISTS active_index ON keyset(active); | ||
|
||
|
||
CREATE TABLE IF NOT EXISTS blind_signature ( | ||
y BLOB PRIMARY KEY, | ||
amount INTEGER NOT NULL, | ||
keyset_id TEXT NOT NULL, | ||
c BLOB NOT NULL | ||
); | ||
|
||
CREATE INDEX IF NOT EXISTS keyset_id_index ON blind_signature(keyset_id); |
Oops, something went wrong.