I have tried the following:
var hash=sha256(sha256(msg)); // hash of the transaction var priv_key= "...."; // the private key, 64 char length, ([a-z