public ContractBase(Guid ID, string ContractName, string ContractHash, string ContractIssuer, string Signture, DateTime IssuanceTime, DateTime MinedTime, string ContainerBlockHash, uint BlockNumber) { this.ID = ID; this.ContractName = ContractName; this.ContractHash = ContractHash; this.ContractIssuer = ContractIssuer; this.Signture = Signture; this.IssuanceTime = IssuanceTime; this.MinedTime = MinedTime; this.ContainerBlockHash = ContainerBlockHash; this.BlockNumber = BlockNumber; _signture = new Signture(Signture); }
/// <summary> /// in miner side for proccesing and verifying transaction /// </summary> /// <param name="json">transaction properties</param> public Transaction(string json) { var j = JsonConvert.DeserializeObject <Transaction>(json); ID = j.ID; TransactionVersion = j.TransactionVersion; TransactionName = j.TransactionName; Issuer = j.Issuer; Reciepient = j.Reciepient; Amount = j.Amount; Sequence = j.Sequence; Signture = j.Signture; _signture = new Signture(Signture); IssuanceTime = j.IssuanceTime; TransactionInputs = j.TransactionInputs; TransactionOutputs = j.TransactionOutputs; IsBlockReward = j.IsBlockReward; }