Adds hash validation for snaks
Adds hash validation for references
Merge pull request #62 from Tpt/hashValidation

Adds hash validation to snaks and references deserialization