Use new squeak protocol (#64)

* Use new squeak protocol with encryption/decryption key instead of data key hash.

* Use from_bytes method for encrypted decryption key

* Undo changes to use temporary local install of squeaklib
This commit is contained in:
Jonathan Zernik 2020-07-03 21:51:47 -07:00 committed by GitHub
parent 6fd4940a0a
commit 74817948cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 75 additions and 47 deletions

View file

@ -7,14 +7,15 @@ CREATE TABLE IF NOT EXISTS squeak (
hashBlock CHAR(64) NOT NULL,
nBlockHeight INTEGER NOT NULL,
scriptPubKey VARCHAR(100) NOT NULL,
hashDataKey CHAR(64) NOT NULL,
encryptionKey CHAR(324) NOT NULL,
encDatakey CHAR(256) NOT NULL,
vchIv CHAR(32) NOT NULL,
nTime INTEGER NOT NULL,
nNonce BIGINT NOT NULL,
encContent CHAR(2272) NOT NULL,
scriptSig VARCHAR(400) NOT NULL,
address VARCHAR(50) NOT NULL,
vchDataKey CHAR(64),
vchDecryptionKey VARCHAR(8000),
content CHAR(1120)
);