migrate ecdsa code to use byte arrays instead of hex strings