MCPcopy Create free account
hub / github.com/Adam-Vandervorst/PyBHV / stable_hashcode

Function stable_hashcode

bhv/shared.py:65–76  ·  view source on GitHub ↗

A thin wrapper around `stable_hash` which returns a string and incorporates a version. :param d: Something you want to hash :param version: Increase this number if you want to unconditionally break all hashcodes :return: The 24 character base64 (with - and _) string hash

(d, version=0, try_cache=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

sym_laws.pyFile · 0.90
test_optimal_sharingMethod · 0.90
nodeidMethod · 0.85
optimal_sharingMethod · 0.85

Calls 2

stable_hashFunction · 0.85
to_bytesMethod · 0.45

Tested by 1

test_optimal_sharingMethod · 0.72