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 HashModifier and TypeMethodDescriptionstatic Hash
Hashing.sha256(byte[] data)
Computes the SHA3-256 hash of byte datastatic Hash
Computes the SHA-256 hash of a stringstatic Hash
Hashing.sha3(byte[] data)
Computes the SHA3-256 hash of byte datastatic Hash
Computes the SHA-256 hash of a stringMethods in convex.core.crypto with parameters of type HashModifier and TypeMethodDescriptionabstract ASignature
Signs a hash value with this key pair, producing a signature of the appropriate type. -
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 Hash
Hash.EMPTY_HASH
static Hash
Hash.FALSE_HASH
protected Hash
Ref.hash
Hash of the serialised representation of the value Computed and stored upon demand.static Hash
Hash.NULL_HASH
static Hash
Hash.TRUE_HASH
Methods in convex.core.data that return HashModifier and TypeMethodDescriptionprotected Hash
ACell.cachedHash()
Gets the Hash if already computed, or null if not yet availableRef.cachedHash()
Gets the Hash of this ref's value, or null if not yet computedstatic Hash
Computes the Hash for any ACell value.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 stringABlob.getContentHash()
Computes the hash of the byte data stored in this Blob, using the default MessageDigest.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
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 offset, int length)
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)
abstract boolean
AHashSet.containsHash(Hash hash)
Tests if this Set contains a given hashboolean
SetLeaf.containsHash(Hash hash)
boolean
SetTree.containsHash(Hash hash)
Creates a direct Ref to the given valueConstruction function for a Direct RefRefSoft.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)
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 Root Hash from the Store.MemoryStore.getRootHash()
Methods in convex.core.store with parameters of type HashModifier and TypeMethodDescriptionAStore.refForHash(Hash hash)
Gets the stored Ref for a given hash value, or null if not found.MemoryStore.refForHash(Hash hash)
abstract void
AStore.setRootHash(Hash h)
Sets the root hash for this Storevoid
MemoryStore.setRootHash(Hash h)
-
Uses of Hash in etch
Modifier and TypeMethodDescriptionEtchStore.refForHash(Hash hash)
void
Etch.setRootHash(Hash h)
void
EtchStore.setRootHash(Hash h)