update KeySig implementation