ecdsa: moved all signature encoding to ECSignature