public byte[] Encode() { var gtxBody = new List <object>(); gtxBody.Add(GetGtvTxBody()); gtxBody.Add(this.Signatures.ToArray()); return(Gtx.ArgToGTXValue(gtxBody.ToArray()).Encode()); }
public Operation(string opName, object[] args) : this() { this.OpName = opName; this._rawArgs = args; foreach (var opArg in args) { Args.Add(Gtx.ArgToGTXValue(opArg)); } }
public GTXValue ToGtxValue() { var gtxValue = new GTXValue(); gtxValue.Choice = GTXValueChoice.Array; gtxValue.Array = new List <GTXValue>() { Gtx.ArgToGTXValue(this.OpName) }; gtxValue.Array.AddRange(this.Args); return(gtxValue); }
public byte[] CalculateLeafHash(object value) { var gtxValue = Gtx.ArgToGTXValue(value); return(CalculateHashOfValueInternal(gtxValue)); }