private byte[] FindPublicKey(Dictionary <string, dynamic> config) { byte[] publikcKey = null; if (config.ContainsKey("PublicKey")) { publikcKey = Hex.ToByte((string)config["PublicKey"]); } return(publikcKey); }