digest = cls._DIGEST_IMPL(blob).digest()
hash_ = cls.compute_hash_from_digest(digest)
return cls(digest, hash_, type_, string)@classmethoddef compute_hash_from_digest(cls, digest):
Extract 32 bit hash from digest.
After Change
:param protocol: Serialization protocol for pickle, if not provided will use ASCII protocol.
if in_memory:
content, key_mappings = InMemoryDb(), InMemoryDb()else:
content, key_mappings = Lmdb.create(path=path,
child_databases=[cls.LMDB_KEY_MAPPINGS_DB_NAME])