Remain compatible with Bitcoin bip32

test cases now pass correctly