Example #1
0
 /// <summary>
 /// Initializes a transaction <see cref="Script"/>, which contains the assembly and a hexadecimal representation of the script.
 /// </summary>
 /// <param name="script">A <see cref="Consensus.ScriptInfo.Script"/>.</param>
 public Script(Consensus.ScriptInfo.Script script)
 {
     this.Asm = script.ToString();
     this.Hex = Encoders.Hex.EncodeData(script.ToBytes());
 }