fromBytes method
Implementation
Transaction fromBytes(bytes) {
ProtoTransaction protoTx = ProtoTransaction.fromBuffer(bytes);
ProtoTransaction_Data protoTxData = protoTx.data;
this.nonce = protoTxData.nonce;
this.epoch = protoTxData.epoch;
this.type = protoTxData.type;
this.to = AppHelpers.toHexString(protoTxData.to, true);
this.amount = Uint8List.fromList(protoTxData.amount);
this.maxFee = Uint8List.fromList(protoTxData.maxFee);
this.tips = Uint8List.fromList(protoTxData.tips);
this.payload = protoTxData.payload;
this.signature = HEX.encode(protoTx.signature);
return this;
}