From 047eff49bff66ee530b843ef55f1a3edc841bb25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20Thoorens?= Date: Mon, 3 Jul 2017 15:02:26 +0200 Subject: [PATCH] Create TODO.md --- TODO.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 TODO.md diff --git a/TODO.md b/TODO.md new file mode 100644 index 00000000..1aa60390 --- /dev/null +++ b/TODO.md @@ -0,0 +1,11 @@ +Parsing serialised transaction: +``` + var buf = new Buffer(hexString, "hex"); + tx.type = buf.readInt8(0); + tx.timestamp = buf.readUInt32LE(1); + tx.senderPublicKey = hexString.substring(10,10+33*2); + tx.amount = buf.readUInt32LE(38+21+64); + tx.fee = buf.readUInt32LE(38+21+64+8); + tx.vendorFieldHex = hexString.substring(76+42,76+42+128); + tx.recipientId = bs58check.encode(buf.slice(38,38+21)); + ```