validateCommit(entryType, entry, header, package, sources)

This function gets called when an entry is about to be committed to a source chain. Use this function to describe the agreements about data as it should be added to shared Holochain. This function gets called for all entry types. For more background, read the Validation Functions section.

entryType: string

entry: any-type

header: Header-object

package: Package-object

sources: array-of-string

Return: boolean