More work on the wallet/key scheme.

Call the public generator a public generator rather than a public key.
Ignore private sub-keys greater than the EC group
Bugfixes.
When we create a new key family, validate the first 500 keys, just out of paranoia.
This commit is contained in:
JoelKatz
2012-01-02 23:05:04 -08:00
parent 82a88671dd
commit 7a0dde60ad
5 changed files with 138 additions and 67 deletions

View File

@@ -77,12 +77,13 @@ CREATE TABLE LocalAcctFamilies ( -- a family of accounts that share a payphrase
Comment TEXT
);
CREATE TABLE LocalAccounts ( -- an individual account
CREATE TABLE LocalAccounts ( -- an individual account
ID CHARACTER(40) PRIMARY KEY,
DKID CHARACTER(40), -- root determinstic key
DKSeq BIGINT UNSIGNED, -- sequence number
KeyType CHARACTER(1) -- F=family
PrivateKey TEXT, -- For F, FamilyName:Seq
Seq BIGINT UNSIGNED, -- last transaction seen/issued
Balance BIGINT UNSIGNED,
LedgerSeq BIGINT UNSIGNED, -- ledger this balance is from
Name TEXT,
Comment TEXT
);