created wallet module

This commit is contained in:
rachel-rose
2021-05-11 15:34:09 +02:00
parent e8a400def2
commit f6de2257c1
2 changed files with 10 additions and 0 deletions

1
src/wallet/mod.rs Normal file
View File

@@ -0,0 +1 @@
// Empty mod.rs file for now

9
src/wallet/schema.sql Normal file
View File

@@ -0,0 +1,9 @@
ATTACH DATABASE 'wallet.db' AS wallet KEY 'testkey';
SELECT sqlcipher_export('wallet');
CREATE TABLE IF NOT EXISTS keys(
key_id INT PRIMARY KEY NOT NULL,
key_public BLOB NOT NULL,
key_private BLOB NOT NULL
);
CREATE INDEX IF NOT EXISTS key_public on keys(key_public);