zcash-test-vectors/zcash_test_vectors/hd_common.py

9 lines
176 B
Python

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