verifier-alliance / database-specs

11 stars 1 forks source link

Add valid code_hash constraint to database.sql #4

Closed rimrakhimov closed 3 months ago

rimrakhimov commented 4 months ago

Make use of sha256 instead of keccak256 as a code.code_hash definition. Add a constraint to guarantee that invariant on the database level

kuzdogan commented 3 months ago

I think we can merge this. We tried the hash function on our Sourcify GCP instance and it works. If there are any other considerations, let's open a new PR