ecc_sign(
key,pub_key,msg) ->sig,err
Sign a message using an ECC P-256 private key
All arguments are raw binary strings. key is the private scalar,
pub_key is the uncompressed public point. Returns a 64-byte
signature in r||s format (32 bytes each, big-endian).