holochain / holochain-rust

DEPRECATED. The Holochain framework implemented in rust with a redux style internal state-model.
GNU General Public License v3.0
1.12k stars 267 forks source link

Unique EntryAspect hash #2136

Closed lucksus closed 4 years ago

lucksus commented 4 years ago

PR summary

The custom Hash impl for EntryAspect was basing the hash only on the entry address found in the aspects entry header. This is not correct though as an entry could be created multiple times (either by the same author at different points in time - or by different authors) which would result in the same entry and entry hash but different headers (different provenance and/or timestamp).

In order to differentiate these different entry aspects they need to hash differently.

These changes include the whole header as well as the aspect type in the input for the hash calculation.

testing/benchmarking notes

( if any manual testing or benchmarking was/should be done, add notes and/or screenshots here )

followups

( any new tickets/concerns that were discovered or created during this work but aren't in scope for review here )

changelog

- summary of change [PR#1234](https://github.com/holochain/holochain-rust/pull/1234)

documentation