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 -
-
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.
-