You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let priv_key_wif = "5K7w2cEfUeVLjroqxddhzCs1zJfy9yM2KysVzMtjrcWucsGpy5G" //privateKey.toWif();
let pub_key = eos.PublicKey.fromString("EOS7uTdRms6gxwGu5XqevSw6EDe4AzArAdzYWQt1Q6vF5D83oSrZi"); //eos.PrivateKey.fromWif(privateKey.toWif()).toPublic();
console.log("privateKey", priv_key_wif);
console.log("publicKey", pub_key.toString());
let hash = eos.sign(cjson.stringify({"test":"some stuff"}), priv_key_wif)
let verification = eos.verify(hash, cjson.stringify({"test":"some stuff"}), pub_key)