sha256DigestMultibase
Computes SHA-256 digest of a string with multibase encoding (base58btc).
If the string is valid JSON, it will be canonicalized first.
Return
The multibase-encoded digest (e.g., "zABC123...")
Parameters
data
The string to digest (JSON or plain text)
Computes SHA-256 digest of a JSON element with multibase encoding (base58btc).
The digest is computed from the canonical JSON representation, ensuring consistency.
Performance: Uses caching to avoid recomputing digests for the same content.
Return
The multibase-encoded digest (e.g., "zABC123...")
Parameters
element
The JSON element to digest