public override byte[] ToBytes() { var txOutPointBytes = PreviousTransaction.ToBytes(); var scriptBytes = Script.ToBytes(); var scriptLengthBytes = new IntegerPayload((UInt64)scriptBytes.Length).ToBytes(); var sequenceBytes = BitConverter.GetBytes(Sequence); return(txOutPointBytes .Concat(scriptLengthBytes) .Concat(scriptBytes) .Concat(sequenceBytes) .ToArray()); }
public override string ToString() { return($"{PreviousTransaction.ToHex()}:{PreviousIndex}"); }