mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
basic sql table structure for wallet
This commit is contained in:
9
src/bin/wallet/wallet.sql
Normal file
9
src/bin/wallet/wallet.sql
Normal 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);
|
||||
|
||||
Reference in New Issue
Block a user