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 HashCodeHashCode. fromBytes(byte[] bytes)Creates aHashCodefrom a byte array.static HashCodeHashCode. fromInt(int hash)Creates a 32-bitHashCoderepresentation of the given int value.static HashCodeHashCode. fromLong(long hash)Creates a 64-bitHashCoderepresentation of the given long value.static HashCodeHashCode. fromString(java.lang.String string)Creates aHashCodefrom a hexadecimal (base 16) encoded string.HashCodeHasher. hash()Computes a hash code based on the data that have been provided to this hasher.HashCodeHashFunction. hashBytes(byte[] input)Shortcut fornewHasher().putBytes(input).hash().HashCodeHashFunction. hashBytes(byte[] input, int off, int len)Shortcut fornewHasher().putBytes(input, off, len).hash().HashCodeHashFunction. hashBytes(java.nio.ByteBuffer input)Shortcut fornewHasher().putBytes(input).hash().HashCodeHashFunction. hashByteString(com.google.protobuf.ByteString input)Shortcut fornewHasher().putBytes(input.toByteArray()).hash().HashCodeHashFunction. hashInt(int input)Shortcut fornewHasher().putInt(input).hash(); returns the hash code for the givenintvalue, interpreted in little-endian byte order.HashCodeHashFunction. hashLong(long input)Shortcut fornewHasher().putLong(input).hash(); returns the hash code for the givenlongvalue, interpreted in little-endian byte order.<T> HashCodeHashFunction. hashObject(T instance, Funnel<? super T> funnel)Shortcut fornewHasher().putObject(instance, funnel).hash().HashCodeHashFunction. hashString(java.lang.CharSequence input, java.nio.charset.Charset charset)Shortcut fornewHasher().putString(input, charset).hash().HashCodeHashFunction. 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 voidFunnels.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 HashCodeSignedMessage. hash()Returns the hash of the signed message, which is the hash of the protobuf-serialized representation.HashCodeTransactionMessage. 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 HashCodeCheckedProof. 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 voidProofHashes. 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 HashCodeCheckedListProofImpl. 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 HashCodeMapProofEntry. getHash()Returns a hash of the corresponding proof map tree node.HashCodeCheckedFlatMapProof. getIndexHash()Methods in com.exonum.binding.common.proofs.map with parameters of type HashCode Modifier and Type Method Description static CheckedFlatMapProofCheckedFlatMapProof. 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 HashCodeBlock. getBlockHash()Returns the SHA-256 hash of this block.abstract HashCodeBlock. getErrorHash()Root hash of exceptions occurred in the block.abstract HashCodeBlock. getPreviousBlockHash()Hash link to the previous block in the blockchain.abstract HashCodeBlock. getStateHash()Hash of the blockchain state after applying transactions in the block.abstract HashCodeBlock. 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.BuilderBlock.Builder. blockHash(HashCode hash)Sets the hash of the block binary representation.abstract Block.BuilderBlock.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.BuilderBlock.Builder. previousBlockHash(HashCode previousBlockHash)Sets the hash of the previous block in the hash chain.abstract Block.BuilderBlock.Builder. stateHash(HashCode blockchainStateHash)Sets the blockchain state hash at the moment this block was committed.abstract Block.BuilderBlock.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 BlockBlockSerializer. 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 HashCodeNodeProxy. submitTransaction(RawTransaction rawTransaction)Methods in com.exonum.binding.core.runtime with parameters of type HashCode Modifier and Type Method Description voidServiceRuntime. 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 HashCodeNode. submitTransaction(RawTransaction rawTransaction)Creates a transaction from the given parameters, signs it with the node service key, and then submits it into Exonum network.HashCodeNodeFake. 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.BuilderExecutionContext.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 HashCodeValueSetIndexProxy.Entry. getHash()Returns a hash of the element of the set.HashCodeHashableIndex. getIndexHash()Returns the index hash which represents the complete state of this index.HashCodeProofEntryIndex. getIndexHash()Returns the index hash which represents the complete state of this entry.HashCodeProofEntryIndexProxy. getIndexHash()HashCodeProofListIndexProxy. getIndexHash()HashCodeProofMapIndexProxy. 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 booleanValueSetIndexProxy. containsByHash(HashCode elementHash)Returns true if this set contains an element with the specified hash.voidValueSetIndexProxy. removeByHash(HashCode elementHash)Removes an element from this set by its hash.