Uses of Class
convex.core.data.Hash
Packages that use Hash
Package
Description
Data structures and algorithms, including a complete set of classes
required to implement immutable, decentralised data objects.
-
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 HashHashing.sha256(byte[] data)Computes the SHA3-256 hash of byte datastatic HashComputes the SHA-256 hash of a stringstatic HashHashing.sha3(byte[] data)Computes the SHA3-256 hash of byte datastatic HashComputes the SHA-256 hash of a stringMethods in convex.core.crypto with parameters of type HashModifier and TypeMethodDescriptionabstract ASignatureSigns 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 HashABlob.contentHashCached hash of the Blob data.static HashHash.EMPTY_HASHstatic HashHash.FALSE_HASHprotected HashRef.hashHash of the serialised representation of the value Computed and stored upon demand.static HashHash.NULL_HASHstatic HashHash.TRUE_HASHMethods in convex.core.data that return HashModifier and TypeMethodDescriptionprotected HashACell.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 HashComputes 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 HashConstructs 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 HashRef.getHash()Gets the Hash of this ref's value.RefDirect.getHash()RefSoft.getHash()MapEntry.getKeyHash()Gets the hash of the key for this MapEntrystatic HashHash.readRaw(ByteBuffer bb)Reads a Hash from a ByteBuffer Assumes no Tag, i.e.static HashHash.wrap(byte[] hashBytes)Wraps the specified bytes as a Data object Warning: underlying bytes are used directly.static HashHash.wrap(byte[] hashBytes, int offset)Wraps the specified bytes as a Data object Warning: underlying bytes are used directly.static HashHash.wrap(AArrayBlob data)Wraps the specified blob data as a Hash, sharing the underlying byte array.static HashHash.wrap(AArrayBlob data, int offset, int length)Methods in convex.core.data with parameters of type HashModifier and TypeMethodDescriptionvoidBlob.attachContentHash(Hash hash)abstract booleanAHashSet.containsHash(Hash hash)Tests if this Set contains a given hashbooleanSetLeaf.containsHash(Hash hash)booleanSetTree.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.booleanTests 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 voidAHashSet.validateWithPrefix(Hash prefix, int digit, int shift)Validates the set with a given hex prefix.protected voidSetLeaf.validateWithPrefix(Hash prefix, int digit, int shift)protected voidSetTree.validateWithPrefix(Hash base, int digit, int shift)Method parameters in convex.core.data with type arguments of type HashModifier and TypeMethodDescriptionvoidRef.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 HashConstructors 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 HashAStore.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 voidAStore.setRootHash(Hash h)Sets the root hash for this StorevoidMemoryStore.setRootHash(Hash h) -
Uses of Hash in etch
Modifier and TypeMethodDescriptionEtchStore.refForHash(Hash hash)voidEtch.setRootHash(Hash h)voidEtchStore.setRootHash(Hash h)