const hashStorageMaxSize … func unsafeHashByRev(tx backend.ReadTx, compactRevision, revision int64, keep map[revision]struct{ … } type kvHasher … func newKVHasher(compactRev, rev int64, keep map[revision]struct{ … } func (h *kvHasher) WriteKeyValue(k, v []byte) { … } func (h *kvHasher) Hash() KeyValueHash { … } type KeyValueHash … type HashStorage … type hashStorage … func newHashStorage(lg *zap.Logger, s *store) *hashStorage { … } func (s *hashStorage) Hash() (hash uint32, revision int64, err error) { … } func (s *hashStorage) HashByRev(rev int64) (KeyValueHash, int64, error) { … } func (s *hashStorage) Store(hash KeyValueHash) { … } func (s *hashStorage) Hashes() []KeyValueHash { … }