Uses of Class
com.exonum.binding.common.hash.HashCode
-
Packages that use HashCode Package Description com.exonum.binding.common.configuration com.exonum.binding.common.hash Hash functions and related structures.com.exonum.binding.common.message com.exonum.binding.common.proofs com.exonum.binding.common.proofs.list com.exonum.binding.common.proofs.map com.exonum.binding.common.serialization com.exonum.binding.core.blockchain com.exonum.binding.core.service com.exonum.binding.core.storage.indices Contains Exonum indexes — persistent, named collections built on top of Exonum key-value storage.com.exonum.binding.core.transaction -
-
Uses of HashCode in com.exonum.binding.common.configuration
Methods in com.exonum.binding.common.configuration that return HashCode Modifier and Type Method Description abstract HashCode
StoredConfiguration. previousCfgHash()
Hash of the previous configuration, which can be used to find that configuration.Methods in com.exonum.binding.common.configuration with parameters of type HashCode Modifier and Type Method Description abstract StoredConfiguration.Builder
StoredConfiguration.Builder. previousCfgHash(HashCode previousCfgHash)
-
Uses of HashCode in com.exonum.binding.common.hash
Methods in com.exonum.binding.common.hash that return HashCode Modifier and Type Method Description static HashCode
HashCode. fromBytes(byte[] bytes)
Creates aHashCode
from a byte array.static HashCode
HashCode. fromInt(int hash)
Creates a 32-bitHashCode
representation of the given int value.static HashCode
HashCode. fromLong(long hash)
Creates a 64-bitHashCode
representation of the given long value.static HashCode
HashCode. fromString(String string)
Creates aHashCode
from a hexadecimal (base 16
) encoded string.HashCode
Hasher. hash()
Computes a hash code based on the data that have been provided to this hasher.HashCode
HashFunction. hashBytes(byte[] input)
Shortcut fornewHasher().putBytes(input).hash()
.HashCode
HashFunction. hashBytes(byte[] input, int off, int len)
Shortcut fornewHasher().putBytes(input, off, len).hash()
.HashCode
HashFunction. hashBytes(ByteBuffer input)
Shortcut fornewHasher().putBytes(input).hash()
.HashCode
HashFunction. hashByteString(com.google.protobuf.ByteString input)
Shortcut fornewHasher().putBytes(input.toByteArray()).hash()
.HashCode
HashFunction. hashInt(int input)
Shortcut fornewHasher().putInt(input).hash()
; returns the hash code for the givenint
value, interpreted in little-endian byte order.HashCode
HashFunction. hashLong(long input)
Shortcut fornewHasher().putLong(input).hash()
; returns the hash code for the givenlong
value, interpreted in little-endian byte order.<T> HashCode
HashFunction. hashObject(T instance, Funnel<? super T> funnel)
Shortcut fornewHasher().putObject(instance, funnel).hash()
.HashCode
HashFunction. hashString(CharSequence input, Charset charset)
Shortcut fornewHasher().putString(input, charset).hash()
.HashCode
HashFunction. hashUnencodedChars(CharSequence input)
Shortcut fornewHasher().putUnencodedChars(input).hash()
.Methods in com.exonum.binding.common.hash that return types with arguments of type HashCode Modifier and Type Method Description static Funnel<HashCode>
Funnels. hashCodeFunnel()
Returns a funnel for hashcode.Methods in com.exonum.binding.common.hash with parameters of type HashCode Modifier and Type Method Description void
Funnels.HashCodeFunnel. funnel(HashCode from, PrimitiveSink into)
-
Uses of HashCode in com.exonum.binding.common.message
Methods in com.exonum.binding.common.message that return HashCode Modifier and Type Method Description HashCode
TransactionMessage. hash()
Returns the SHA-256 hash of the binary message representation. -
Uses of HashCode in com.exonum.binding.common.proofs
Methods in com.exonum.binding.common.proofs that return HashCode Modifier and Type Method Description HashCode
CheckedProof. getRootHash()
Returns the calculated root hash of the proof. -
Uses of HashCode in com.exonum.binding.common.proofs.list
Methods in com.exonum.binding.common.proofs.list that return HashCode Modifier and Type Method Description HashCode
ListProofHashNode. getHash()
Returns the hash value.HashCode
CheckedListProofImpl. getRootHash()
Constructors in com.exonum.binding.common.proofs.list with parameters of type HashCode Constructor Description CheckedListProofImpl(HashCode calculatedRootHash, NavigableMap<Long,E> elements, ListProofStatus proofStatus)
Creates checked list proof.ListProofHashNode(HashCode hash)
-
Uses of HashCode in com.exonum.binding.common.proofs.map
Methods in com.exonum.binding.common.proofs.map that return HashCode Modifier and Type Method Description HashCode
MapProofEntry. getHash()
Returns a hash of the corresponding proof map tree node.HashCode
CheckedFlatMapProof. getRootHash()
Methods in com.exonum.binding.common.proofs.map with parameters of type HashCode Modifier and Type Method Description static CheckedFlatMapProof
CheckedFlatMapProof. correct(HashCode rootHash, Set<MapEntry<com.google.protobuf.ByteString,com.google.protobuf.ByteString>> entries, Set<com.google.protobuf.ByteString> missingKeys)
Creates a valid map proof. -
Uses of HashCode in com.exonum.binding.common.serialization
Methods in com.exonum.binding.common.serialization that return types with arguments of type HashCode Modifier and Type Method Description static Serializer<HashCode>
StandardSerializers. hash()
Returns a serializer of hash codes. -
Uses of HashCode in com.exonum.binding.core.blockchain
Methods in com.exonum.binding.core.blockchain that return HashCode Modifier and Type Method Description abstract HashCode
Block. getBlockHash()
Returns the SHA-256 hash of this block.abstract HashCode
Block. getPreviousBlockHash()
Hash link to the previous block in the blockchain.abstract HashCode
Block. getStateHash()
Hash of the blockchain state after applying transactions in the block.abstract HashCode
Block. getTxRootHash()
Root hash of the Merkle tree of transactions in this block.Methods in com.exonum.binding.core.blockchain that return types with arguments of type HashCode Modifier and Type Method Description ListIndex<HashCode>
Blockchain. getBlockHashes()
Returns a list of all block hashes, indexed by the block height.MapIndex<HashCode,Block>
Blockchain. getBlocks()
Returns a map that stores a block object for every block hash.ProofListIndexProxy<HashCode>
Blockchain. getBlockTransactions(long height)
Returns a proof list of transaction hashes committed in the block at the given height.ProofListIndexProxy<HashCode>
Blockchain. getBlockTransactions(HashCode blockId)
Returns a proof list of transaction hashes committed in the block with the given id.ProofListIndexProxy<HashCode>
Blockchain. getBlockTransactions(Block block)
Returns a proof list of transaction hashes committed in the given block.KeySetIndexProxy<HashCode>
Blockchain. getTransactionPool()
Returns a set of uncommitted (in-pool) transaction hashes; empty in case of no transactions.MapIndex<HashCode,TransactionLocation>
Blockchain. getTxLocations()
Returns a map that keeps the transaction position inside the blockchain for every transaction hash.MapIndex<HashCode,TransactionMessage>
Blockchain. getTxMessages()
Returns a map of transaction messages identified by their SHA-256 hashes.ProofMapIndexProxy<HashCode,TransactionResult>
Blockchain. getTxResults()
Returns a map with a key-value pair of a transaction hash and execution result.Methods in com.exonum.binding.core.blockchain with parameters of type HashCode Modifier and Type Method Description abstract Block.Builder
Block.Builder. blockHash(HashCode hash)
Sets the hash of the block binary representation.Optional<Block>
Blockchain. findBlock(HashCode blockHash)
Returns a block object for given block hash.ProofListIndexProxy<HashCode>
Blockchain. getBlockTransactions(HashCode blockId)
Returns a proof list of transaction hashes committed in the block with the given id.Optional<TransactionLocation>
Blockchain. getTxLocation(HashCode messageHash)
Returns transaction position inside the blockchain for given message hash.Optional<TransactionResult>
Blockchain. getTxResult(HashCode messageHash)
Returns a transaction execution result for given message hash.abstract Block.Builder
Block.Builder. previousBlockHash(HashCode previousBlockHash)
Sets the hash of the previous block in the hash chain.abstract Block.Builder
Block.Builder. stateHash(HashCode blockchainStateHash)
Sets the blockchain state hash at the moment this block was committed.abstract Block.Builder
Block.Builder. txRootHash(HashCode txRootHash)
Sets the Merkle root hash of the collection holding all transactions in this block. -
Uses of HashCode in com.exonum.binding.core.service
Methods in com.exonum.binding.core.service that return HashCode Modifier and Type Method Description HashCode
Node. submitTransaction(RawTransaction rawTransaction)
Creates a transaction from the given parameters, signs it with the node service key, and then submits it into Exonum network.HashCode
NodeFake. submitTransaction(RawTransaction transaction)
Returns a zero hash always, ignoring the transaction.HashCode
NodeProxy. submitTransaction(RawTransaction rawTransaction)
Creates a transaction from the given parameters, signs it with the node service key, and then submits it into Exonum network.Methods in com.exonum.binding.core.service that return types with arguments of type HashCode Modifier and Type Method Description List<HashCode>
AbstractService. getStateHashes(Snapshot snapshot)
List<HashCode>
Schema. getStateHashes()
Returns the root hashes of Merkelized tables in this database schema, as of the current state of the database.default List<HashCode>
Service. getStateHashes(Snapshot snapshot)
Returns a list of root hashes of all Merkelized tables defined by this service, as of the given snapshot of the blockchain state. -
Uses of HashCode in com.exonum.binding.core.storage.indices
Methods in com.exonum.binding.core.storage.indices that return HashCode Modifier and Type Method Description abstract HashCode
ValueSetIndexProxy.Entry. getHash()
Returns a hash of the element of the set.HashCode
ProofListIndexProxy. getRootHash()
Returns the root hash of the proof list.HashCode
ProofMapIndexProxy. getRootHash()
Returns the root hash of the underlying Merkle-Patricia tree.Methods in com.exonum.binding.core.storage.indices that return types with arguments of type HashCode Modifier and Type Method Description Iterator<HashCode>
ValueSetIndexProxy. hashes()
Creates an iterator over the hashes of the elements in this set.Methods in com.exonum.binding.core.storage.indices with parameters of type HashCode Modifier and Type Method Description boolean
ValueSetIndexProxy. containsByHash(HashCode elementHash)
Returns true if this set contains an element with the specified hash.void
ValueSetIndexProxy. removeByHash(HashCode elementHash)
Removes an element from this set by its hash. -
Uses of HashCode in com.exonum.binding.core.transaction
Methods in com.exonum.binding.core.transaction that return HashCode Modifier and Type Method Description HashCode
TransactionContext. getTransactionMessageHash()
Returns SHA-256 hash of the transaction message that carried the payload from which the transaction was created.Methods in com.exonum.binding.core.transaction with parameters of type HashCode Modifier and Type Method Description TransactionContext.Builder
TransactionContext.Builder. txMessageHash(HashCode hash)
Sets transaction message hash for the context.
-