Uses of Class
convex.core.data.Hash
Packages that use Hash
Package
Description
Fundamental Convex classes used for the decentralised network
Crypto algorithms used within Convex, particularly for digital signatures and
cryptographic hashes
Data structures and algorithms, including a complete set of classes
required to implement immutable, decentralised data objects.
Specialised exception classes used in the Convex implementation and libraries
Core CVM implementation
Etch database for convergent immutable storage
Convex network transaction types.
-
Uses of Hash in convex.core
Methods in convex.core that return Hash -
Uses of Hash in convex.core.crypto
Methods in convex.core.crypto that return Hash -
Uses of Hash in convex.core.data
Fields in convex.core.data declared as HashModifier and TypeFieldDescriptionprotected Hash
ABlob.contentHash
Cached hash of the Blob data.static final Hash
Hash.EMPTY_HASH
static final Hash
Hash.FALSE_HASH
protected Hash
Ref.hash
Hash of the serialised representation of the value Computed and stored upon demand.static final Hash
Hash.NULL_HASH
static final Hash
Hash.TRUE_HASH
Methods in convex.core.data that return HashModifier and TypeMethodDescriptionprotected final Hash
ACell.cachedHash()
Gets the Hash if already computed, or null if not yet availablefinal Hash
Ref.cachedHash()
Gets the Hash of this ref's value, or null if not yet computedstatic Hash
Computes the Hash for any ACell value.final Hash
ABlob.computeHash
(MessageDigest digest) Computes the hash of the byte data stored in this Blob, using the given MessageDigest.static Hash
Constructs a Hash object from a hex stringfinal Hash
ABlob.getContentHash()
Computes the hash of the byte data stored in this Blob, using the default MessageDigest.final Hash
ACell.getHash()
Hash of data Encoding of this cell, equivalent to the Value ID.abstract Hash
Ref.getHash()
Gets the Hash of this ref's value.RefDirect.getHash()
RefSoft.getHash()
MapEntry.getKeyHash()
Gets the Hash of the key for this MapEntrystatic Hash
Best effort attempt to parse a Hash.static Hash
Best effort attempt to parse a Hash.static Hash
Hash.readRaw
(ByteBuffer bb) Reads a Hash from a ByteBuffer Assumes no Tag or count, i.e.static Hash
Hash.wrap
(byte[] hashBytes) Wraps the specified bytes as a Data object Warning: underlying bytes are used directly.static Hash
Hash.wrap
(byte[] hashBytes, int offset) Wraps the specified bytes as a Data object Warning: underlying bytes are used directly.static Hash
Hash.wrap
(AArrayBlob data) Wraps the specified blob data as a Hash, sharing the underlying byte array.static Hash
Hash.wrap
(AArrayBlob data, int pos) Wraps the specified blob data as a Hash, sharing the underlying byte array.static Hash
Wraps the Blob as a Hash if possibleMethods in convex.core.data with parameters of type HashModifier and TypeMethodDescriptionvoid
Blob.attachContentHash
(Hash hash) final int
Optimised compareTo for Hashes.abstract boolean
AHashSet.containsHash
(Hash hash) Tests if this Set contains a given hashboolean
SetLeaf.containsHash
(Hash hash) boolean
SetTree.containsHash
(Hash hash) RefSoft.createForHash
(Hash hash) Create a RefSoft with a Hash reference.boolean
Tests if the Hash value is precisely equal to another non-null Hash value.Creates a RefSoft using a specific Hash.Gets the Value in the set for the given hash, or null if not foundAMap.getEntryByHash
(Hash hash) Gets the map entry with the specified hashARecord.getEntryByHash
(Hash hash) BlobMap.getEntryByHash
(Hash hash) MapLeaf.getEntryByHash
(Hash hash) MapTree.getEntryByHash
(Hash hash) ASet.getRefByHash
(Hash hash) Gets the Ref in the Set for a given hash, or null if not foundSetLeaf.getRefByHash
(Hash hash) SetTree.getRefByHash
(Hash hash) protected abstract void
AHashSet.validateWithPrefix
(Hash prefix, int digit, int position) Validates the set with a given hex prefix.protected void
SetLeaf.validateWithPrefix
(Hash prefix, int digit, int position) protected void
SetTree.validateWithPrefix
(Hash base, int digit, int position) Method parameters in convex.core.data with type arguments of type HashModifier and TypeMethodDescriptionvoid
Ref.findMissing
(HashSet<Hash> missingSet, long limit) Finds all instances of missing data in this Ref, and adds them to the missing setConstructors in convex.core.data with parameters of type Hash -
Uses of Hash in convex.core.exceptions
Methods in convex.core.exceptions that return HashModifier and TypeMethodDescriptionMissingDataException.getMissingHash()
Gets the Hash for the missing dataConstructors in convex.core.exceptions with parameters of type Hash -
Uses of Hash in convex.core.lang
Fields in convex.core.lang with type parameters of type HashMethods in convex.core.lang that return Hash -
Uses of Hash in convex.core.store
Methods in convex.core.store that return HashModifier and TypeMethodDescriptionabstract Hash
AStore.getRootHash()
Gets the hash of the root data from the store.MemoryStore.getRootHash()
Methods in convex.core.store with parameters of type HashModifier and TypeMethodDescriptionAStore.checkCache
(Hash h) checks in-memory cache for a stored RefMemoryStore.checkCache
(Hash h) Ref<?>
Gets the Cached Ref for a given hash, or null if not cached.AStore.refForHash
(Hash hash) Gets the stored Ref for a given hash value, or null if not found in the store.MemoryStore.refForHash
(Hash hash) -
Uses of Hash in etch
Modifier and TypeMethodDescriptionEtchStore.checkCache
(Hash h) EtchStore.refForHash
(Hash hash) void
Etch.setRootHash
(Hash h) Writes the root data hash to the Store