zcash-test-vectors/zcash_test_vectors/hd_common.py

8 lines
152 B
Python

# Common definitions for hierarchical derivation.
ZCASH_MAIN_COINTYPE = 133
def hardened(i):
assert 0 <= i and i < (1<<31)
return i + (1<<31)