add contract_sig field

This commit is contained in:
Christian Grothoff 2022-04-04 17:04:31 +02:00
parent 914a77b5a7
commit df8ff01f29
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 40 additions and 37 deletions

View File

@ -1326,6 +1326,7 @@ BEGIN
'(contract_serial_id BIGINT GENERATED BY DEFAULT AS IDENTITY' --UNIQUE '(contract_serial_id BIGINT GENERATED BY DEFAULT AS IDENTITY' --UNIQUE
',purse_pub BYTEA NOT NULL CHECK (LENGTH(purse_pub)=32)' ',purse_pub BYTEA NOT NULL CHECK (LENGTH(purse_pub)=32)'
',pub_ckey BYTEA NOT NULL CHECK (LENGTH(pub_ckey)=32)' ',pub_ckey BYTEA NOT NULL CHECK (LENGTH(pub_ckey)=32)'
',contract_sig BYTEA NOT NULL CHECK (LENGTH(contract_sig)=64)'
',e_contract BYTEA NOT NULL' ',e_contract BYTEA NOT NULL'
',purse_expiration INT8 NOT NULL' ',purse_expiration INT8 NOT NULL'
',PRIMARY KEY (purse_pub)' ',PRIMARY KEY (purse_pub)'

View File

@ -1068,6 +1068,8 @@ COMMENT ON TABLE contracts
IS 'encrypted contracts associated with purses'; IS 'encrypted contracts associated with purses';
COMMENT ON COLUMN contracts.purse_pub COMMENT ON COLUMN contracts.purse_pub
IS 'public key of the purse that the contract is associated with'; IS 'public key of the purse that the contract is associated with';
COMMENT ON COLUMN contracts.contract_sig
IS 'signature over the encrypted contract by the purse contract key';
COMMENT ON COLUMN contracts.pub_ckey COMMENT ON COLUMN contracts.pub_ckey
IS 'Public ECDH key used to encrypt the contract, to be used with the purse private key for decryption'; IS 'Public ECDH key used to encrypt the contract, to be used with the purse private key for decryption';
COMMENT ON COLUMN contracts.e_contract COMMENT ON COLUMN contracts.e_contract