Added code for signing a TX with multiple derived keys.