Skip to content

Commit

Permalink
Create TODO.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fix committed Jul 3, 2017
1 parent f7c60a4 commit 047eff4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 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));
```

0 comments on commit 047eff4

Please sign in to comment.