Uses of Class
com.exonum.binding.common.hash.HashCode
Package | Description |
---|---|
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.blockchain.serialization | |
com.exonum.binding.core.runtime | |
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.
|
-
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(java.lang.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(java.nio.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(java.lang.CharSequence input, java.nio.charset.Charset charset)
Shortcut fornewHasher().putString(input, charset).hash()
.HashCode
HashFunction. hashUnencodedChars(java.lang.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
SignedMessage. hash()
Returns the hash of the signed message, which is the hash of the protobuf-serialized representation.HashCode
TransactionMessage. hash()
Returns the SHA-256 hash of this message. -
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. getIndexHash()
Returns the calculated index hash of the proof.Methods in com.exonum.binding.common.proofs with parameters of type HashCode Modifier and Type Method Description static void
ProofHashes. checkSha256Hash(HashCode hash)
Checks that the given hash is a SHA-256 hash. -
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
CheckedListProofImpl. getIndexHash()
Constructors in com.exonum.binding.common.proofs.list with parameters of type HashCode Constructor Description CheckedListProofImpl(long size, HashCode calculatedIndexHash, java.util.NavigableMap<java.lang.Long,E> elements, ListProofStatus proofStatus)
Creates checked list proof. -
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. getIndexHash()
Methods in com.exonum.binding.common.proofs.map with parameters of type HashCode Modifier and Type Method Description static CheckedFlatMapProof
CheckedFlatMapProof. correct(HashCode indexHash, java.util.Set<MapEntry<com.google.protobuf.ByteString,com.google.protobuf.ByteString>> entries, java.util.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. getErrorHash()
Root hash of exceptions occurred in the 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.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.abstract Block.Builder
Block.Builder. errorHash(HashCode errorHash)
Sets error hash.java.util.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.java.util.Optional<TransactionLocation>
Blockchain. getTxLocation(HashCode messageHash)
Returns transaction position inside the blockchain for given message hash.java.util.Optional<Errors.ExecutionStatus>
Blockchain. getTxResult(HashCode messageHash)
Returns a transaction execution result for the 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.blockchain.serialization
Methods in com.exonum.binding.core.blockchain.serialization with parameters of type HashCode Modifier and Type Method Description static Block
BlockSerializer. newBlockInternal(Blockchain.Block blockMessage, HashCode blockHash)
Creates a block from a message and the block hash. -
Uses of HashCode in com.exonum.binding.core.runtime
Methods in com.exonum.binding.core.runtime that return HashCode Modifier and Type Method Description HashCode
NodeProxy. submitTransaction(RawTransaction rawTransaction)
Methods in com.exonum.binding.core.runtime with parameters of type HashCode Modifier and Type Method Description void
ServiceRuntime. executeTransaction(int serviceId, java.lang.String interfaceName, int txId, byte[] arguments, BlockchainData blockchainData, int callerServiceId, HashCode txMessageHash, PublicKey authorPublicKey)
Executes a transaction belonging to the given service. -
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.Methods in com.exonum.binding.core.service that return types with arguments of type HashCode Modifier and Type Method Description java.util.Optional<HashCode>
ExecutionContext. getTransactionMessageHash()
Returns SHA-256 hash of the transaction message that carried the payload of the transaction; orOptional.empty()
if no message corresponds to this context.Methods in com.exonum.binding.core.service with parameters of type HashCode Modifier and Type Method Description ExecutionContext.Builder
ExecutionContext.Builder. txMessageHash(HashCode hash)
Sets transaction message hash for the context. -
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
HashableIndex. getIndexHash()
Returns the index hash which represents the complete state of this index.HashCode
ProofEntryIndex. getIndexHash()
Returns the index hash which represents the complete state of this entry.HashCode
ProofEntryIndexProxy. getIndexHash()
HashCode
ProofListIndexProxy. getIndexHash()
HashCode
ProofMapIndexProxy. getIndexHash()
Methods in com.exonum.binding.core.storage.indices that return types with arguments of type HashCode Modifier and Type Method Description java.util.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.