verifier-alliance / database-specs

11 stars 1 forks source link

feat(verified_contracts-values) - add `verified_contracts` creation and runtime values constraints #13

Closed rimrakhimov closed 1 month ago

rimrakhimov commented 2 months ago

Add a check that only allowed keys are used inside verified_contracts.creation_values and verified_contracts.runtime_values. Allows for keys not to be present in the object.

Adds internal constraints for the values according to json-schema (checks that values are valid hexes and have correct lengths)

rimrakhimov commented 1 month ago

As far as I remember, we've agreed upon at least one match without any difference if it is creation or runtime one. For example, for contracts deployed in genesis there will be no creation matches, but runtime only