public static Script PayToPublicKey(PublicKey pubKey)
 {
     List<ScriptElement> se = new List<ScriptElement>();
     se.Add(new ScriptElement(pubKey.ToBytes()));
     se.Add(new ScriptElement(OpCode.OP_CHECKSIG));
     return new Script(se.ToArray());
 }