According to the BIP32, should we test the childX and childY instead of the above code?
I don't know much about the secp256k1 curve, I am confused about how to testing whether or not the point is at finity, in btcec pkg, it's tested by X.Sign() == 0 && Y.Sign() == 0, but here, it's tested by X.Sign() == 0 || Y.Sign() ==0, why the OR logic not AND?
https://github.com/btcsuite/btcutil/blob/06f32abe079c0670ea6adf08f41754ef36063a72/hdkeychain/extendedkey.go#L304
According to the BIP32, should we test the
childX
andchildY
instead of the above code? I don't know much about the secp256k1 curve, I am confused about how to testing whether or not the point is at finity, inbtcec
pkg, it's tested byX.Sign() == 0 && Y.Sign() == 0
, but here, it's tested byX.Sign() == 0 || Y.Sign() ==0
, why the OR logic not AND?