public static (string address, string wif) NewWifAddr(string seed, string net = "test3", int addrtype = 2) { var b = Tech.Sha256(seed); var network = net == "test3" ? Network.TestNet : Network.Main; var privateKey = new Key(b); return(privateKey.PubKey.GetAddress((ScriptPubKeyType)addrtype, network).ToString(), privateKey.GetWif(network).ToString()); }
private void Exit() { var h1 = Tech.Sha256(points.ToArray()); var h2 = Tech.Sha256(points.ToArray(), 2); var l = h1.ToList(); l.AddRange(h2); Close(l.ToArray()); }