-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract #getIndexHash in HashableIndex interface [ECR-4064]. #1366
Extract #getIndexHash in HashableIndex interface [ECR-4064]. #1366
Conversation
Make SignedMessage public and prevent redundant message serialization in #parseFrom.
Also, remove bad/redundant anchors.
Prevent redundant deserialization.
[skip ci]
[skip ci]
HashableIndex is similar to ObjectHash trait in MerkleDB.
* @see ProofListIndexProxy#getIndexHash() | ||
* @see ProofMapIndexProxy#getIndexHash() | ||
* @see ProofEntryIndexProxy#getIndexHash() | ||
* @see com.exonum.binding.core.storage.indices.HashableIndex |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The other links are index-specific.
@@ -85,7 +85,8 @@ | |||
* @param <V> the type of values in this map | |||
* @see View | |||
*/ | |||
public final class ProofMapIndexProxy<K, V> extends AbstractIndexProxy implements MapIndex<K, V> { | |||
public final class ProofMapIndexProxy<K, V> extends AbstractIndexProxy implements MapIndex<K, V>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When we make the index factories and add the interfaces for each index type, those interfaces could extend HashableIndex, instead of implementation classes.
|
||
/** | ||
* Returns the index hash which represents the complete state of this index. | ||
* Any modifications to the stored entries must affect the index hash. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Any modifications to the stored entries must affect the index hash. | |
* Any modifications to the stored entries affects the index hash. |
[skip ci]
Overview
HashableIndex is similar to ObjectHash trait in MerkleDB.
See: https://jira.bf.local/browse/ECR-4064
Definition of Done