Interface Schema


public interface Schema
A schema of the collections (a.k.a. indices) of a service.

To verify the integrity of the database state on each node in the network, Exonum automatically tracks every Merkelized collection used by the user services. It aggregates state hashes of these collections into a single Merkelized meta-map. The hash of this meta-map is considered the hash of the entire blockchain state and is recorded as such in blocks and Precommit messages.

Exonum starts aggregating a service collection state hash once it is initialized: created for the first time with a read-write BlockchainData (e.g., in a service constructor, or in a Transaction).

Please note that if the service does not use any Merkelized collections, the framework will not be able to verify that its transactions cause the same results on different nodes.

See Also:
HashableIndex, Blockchain