change inputs to ec functions to Array Int8 instead of hex strings