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 |
Modifier and Type | Method and Description |
---|---|
static HashCode |
HashCode.fromBytes(byte[] bytes)
Creates a
HashCode from a byte array. |
static HashCode |
HashCode.fromInt(int hash)
Creates a 32-bit
HashCode representation of the given int value. |
static HashCode |
HashCode.fromLong(long hash)
Creates a 64-bit
HashCode representation of the given long value. |
static HashCode |
HashCode.fromString(java.lang.String string)
Creates a
HashCode 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 for
newHasher().putBytes(input).hash() . |
HashCode |
HashFunction.hashBytes(byte[] input,
int off,
int len)
Shortcut for
newHasher().putBytes(input, off, len).hash() . |
HashCode |
HashFunction.hashBytes(java.nio.ByteBuffer input)
Shortcut for
newHasher().putBytes(input).hash() . |
HashCode |
HashFunction.hashByteString(com.google.protobuf.ByteString input)
Shortcut for
newHasher().putBytes(input.toByteArray()).hash() . |
HashCode |
HashFunction.hashInt(int input)
Shortcut for
newHasher().putInt(input).hash() ; returns the hash code for the given
int value, interpreted in little-endian byte order. |
HashCode |
HashFunction.hashLong(long input)
Shortcut for
newHasher().putLong(input).hash() ; returns the hash code for the given
long value, interpreted in little-endian byte order. |
<T> HashCode |
HashFunction.hashObject(T instance,
Funnel<? super T> funnel)
Shortcut for
newHasher().putObject(instance, funnel).hash() . |
HashCode |
HashFunction.hashString(java.lang.CharSequence input,
java.nio.charset.Charset charset)
Shortcut for
newHasher().putString(input, charset).hash() . |
HashCode |
HashFunction.hashUnencodedChars(java.lang.CharSequence input)
Shortcut for
newHasher().putUnencodedChars(input).hash() . |
Modifier and Type | Method and Description |
---|---|
static Funnel<HashCode> |
Funnels.hashCodeFunnel()
Returns a funnel for hashcode.
|
Modifier and Type | Method and Description |
---|---|
void |
Funnels.HashCodeFunnel.funnel(HashCode from,
PrimitiveSink into) |
Modifier and Type | Method and Description |
---|---|
default HashCode |
BinaryMessage.hash()
Returns the SHA-256 hash of this message.
|
Modifier and Type | Method and Description |
---|---|
HashCode |
CheckedProof.getRootHash()
Returns the calculated root hash of the proof.
|
Modifier and Type | Method and Description |
---|---|
HashCode |
ListProofHashNode.getHash()
Returns the hash value.
|
HashCode |
CheckedListProofImpl.getRootHash() |
Constructor and Description |
---|
CheckedListProofImpl(HashCode calculatedRootHash,
java.util.NavigableMap<java.lang.Long,E> elements,
ListProofStatus proofStatus)
Creates checked list proof.
|
ListProofHashNode(HashCode hash) |
Modifier and Type | Method and Description |
---|---|
HashCode |
MapProofEntry.getHash()
Returns a hash of the corresponding proof map tree node.
|
HashCode |
CheckedFlatMapProof.getRootHash() |
Modifier and Type | Method and Description |
---|---|
static CheckedFlatMapProof |
CheckedFlatMapProof.correct(HashCode rootHash,
java.util.Set<MapEntry> entries,
java.util.Set<com.google.protobuf.ByteString> missingKeys)
Creates a valid map proof.
|
Modifier and Type | Method and Description |
---|---|
static Serializer<HashCode> |
StandardSerializers.hash()
Returns a serializer of hash codes.
|
Copyright © 2018 Exonum. All rights reserved.