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.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.
|
| com.exonum.binding.core.transaction |
-
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(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(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(CharSequence input, Charset charset)Shortcut fornewHasher().putString(input, charset).hash().HashCodeHashFunction. 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 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 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 HashCodeListProofHashNode. getHash()Returns the hash value.HashCodeCheckedListProofImpl. getIndexHash()HashCodeListProofOfAbsence. getMerkleRoot()Returns the Merkle root of a corresponding proof list.Constructors in com.exonum.binding.common.proofs.list with parameters of type HashCode Constructor Description CheckedListProofImpl(long size, HashCode calculatedIndexHash, NavigableMap<Long,E> elements, ListProofStatus proofStatus)Creates checked list proof.ListProofHashNode(HashCode hash)ListProofOfAbsence(HashCode merkleRoot)Creates ListProof absence node with given Merkle root. -
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, 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 HashCodeBlock. getBlockHash()Returns the SHA-256 hash of this 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.ProofMapIndexProxy<HashCode,Runtime.ExecutionStatus>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.BuilderBlock.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<Runtime.ExecutionStatus>Blockchain. getTxResult(HashCode messageHash)Returns a transaction execution result for 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.runtime
Methods in com.exonum.binding.core.runtime with parameters of type HashCode Modifier and Type Method Description voidServiceRuntime. executeTransaction(int serviceId, String interfaceName, int txId, byte[] arguments, Fork fork, 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.HashCodeNodeProxy. 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.List<HashCode>Service. getStateHashes(Snapshot snapshot)Returns a list of hashes representing the state of 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 HashCodeValueSetIndexProxy.Entry. getHash()Returns a hash of the element of the set.HashCodeProofListIndexProxy. getIndexHash()Returns the index hash which represents the complete state of this list.HashCodeProofMapIndexProxy. getIndexHash()Returns the index hash which represents the complete state of this map.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 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. -
Uses of HashCode in com.exonum.binding.core.transaction
Methods in com.exonum.binding.core.transaction that return HashCode Modifier and Type Method Description HashCodeTransactionContext. 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.BuilderTransactionContext.Builder. txMessageHash(HashCode hash)Sets transaction message hash for the context.