content
content
#
value_hash — a value's identity is the merkle of the tree it stores as.
value_hash(value, schema=None)
#
The merkle content hash of a CGType value; equal values hash equal.
A value on disk and unchanged hashes in place; anything else is stored into a workspace first, so both forms of an equal value hit the same key.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
object
|
Any |
required |
schema
|
type[CGType] | None
|
The type to store an in-memory value as; defaults to its own type. |
None
|
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
ScratchNotConfigured
|
If no scratch is configured. |