Skip to content

Commit

Permalink
[devdocs] [guide] refs #2 skycoin#29 skycoin#30 - Hexdumps in docs on…
Browse files Browse the repository at this point in the history
… new file structure
  • Loading branch information
stdevEdu committed Feb 21, 2018
1 parent c1d8be1 commit fe91cef
Showing 1 changed file with 236 additions and 0 deletions.
236 changes: 236 additions & 0 deletions content/devdocs/guides/p2p_network.md
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,242 @@ be banned for a configurable number of seconds, which is *86,400* by default
(24 hours).


### Message hexdumps examples
{% include helpers/subhead-links.md %}

{% autocrossref %}

IntroductionMessage:
```
0e 00 00 00 00 00 00 00 d2 04 00 00 d2 1e 05 00
00 00 ............................................. Full message
------------------------------------------------------------------------
0x0000 0e 00 00 00 00 00 00 00 ........................... Prefix
0x0008 d2 04 00 00 ....................................... Mirror
0x000c d2 1e ............................................. Port
0x000e 05 00 00 00 ....................................... Version
```

GetPeersMessage:
```
04 00 00 00 00 00 00 00 ........................... Full message
------------------------------------------------------------------------
0x0000 04 00 00 00 00 00 00 00 ........................... Prefix
```

GivePeersMessage:
```
1a 00 00 00 00 00 00 00 03 00 00 00 5d 87 b2 76
70 17 9c 21 58 2f 70 17 94 67 29 79 70 17 ......... Full message
------------------------------------------------------------------------
0x0000 1a 00 00 00 00 00 00 00 ........................... Prefix
0x0008 03 00 00 00 ....................................... Peers header
0x000c 01 00 00 00 5d 87 b2 76 70 17 ..................... Peers#0
0x001a 01 00 00 00 9c 21 58 2f 70 17 ..................... Peers#1
0x0028 01 00 00 00 94 67 29 79 70 17 ..................... Peers#2
```

GetBlocksMessage:
```
14 00 00 00 00 00 00 00 d2 04 00 00 00 00 00 00
2e 16 00 00 00 00 00 00 ........................... Full message
------------------------------------------------------------------------
0x0000 14 00 00 00 00 00 00 00 ........................... Prefix
0x0008 d2 04 00 00 00 00 00 00 ........................... LastBlock
0x0010 2e 16 00 00 00 00 00 00 ........................... RequestedBlocks
```

GiveBlocksMessage:
```
8a 01 00 00 00 00 00 00 02 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00
00 64 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 ......... Full message
------------------------------------------------------------------------
0x0000 8a 01 00 00 00 00 00 00 ........................... Prefix
0x0008 02 00 00 00 ....................................... Blocks header
0x000c 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 .................................... Blocks#0
0x00d5 01 00 00 00 02 00 00 00 64 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 0a 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 .................................... Blocks#1
```

AnnounceBlocksMessage:
```
0c 00 00 00 00 00 00 00 40 e2 01 00 00 00 00 00
................................................... Full message
------------------------------------------------------------------------
0x0000 0c 00 00 00 00 00 00 00 ........................... Prefix
0x0008 40 e2 01 00 00 00 00 00 ........................... MaxBkSeq
GetTxns:
48 00 00 00 00 00 00 00 02 00 00 00 83 d5 44 cc
c2 23 c0 57 d2 bf 80 d3 f2 a3 29 82 c3 2c 3c 0d
b8 e2 67 48 20 da 50 64 78 3f b0 97 83 d5 44 cc
c2 23 c0 57 d2 bf 80 d3 f2 a3 29 82 c3 2c 3c 0d
b8 e2 67 48 20 da 50 64 78 3f b0 97 ............... Full message
------------------------------------------------------------------------
0x0000 48 00 00 00 00 00 00 00 ........................... Prefix
0x0008 02 00 00 00 ....................................... Txns header
0x000c 01 00 00 00 83 d5 44 cc c2 23 c0 57 d2 bf 80 d3
f2 a3 29 82 c3 2c 3c 0d b8 e2 67 48 20 da 50 64
78 3f b0 97 ....................................... Txns#0
0x0034 01 00 00 00 83 d5 44 cc c2 23 c0 57 d2 bf 80 d3
f2 a3 29 82 c3 2c 3c 0d b8 e2 67 48 20 da 50 64
78 3f b0 97 ....................................... Txns#1
```

GiveTxnsMessage:
```
82 02 00 00 00 00 00 00 02 00 00 00 88 13 00 00
7b 83 d5 44 cc c2 23 c0 57 d2 bf 80 d3 f2 a3 29
82 c3 2c 3c 0d b8 e2 67 48 20 da 50 64 78 3f b0
97 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 02 00 00 00 83 d5 44 cc c2
23 c0 57 d2 bf 80 d3 f2 a3 29 82 c3 2c 3c 0d b8
e2 67 48 20 da 50 64 78 3f b0 97 83 d5 44 cc c2
23 c0 57 d2 bf 80 d3 f2 a3 29 82 c3 2c 3c 0d b8
e2 67 48 20 da 50 64 78 3f b0 97 02 00 00 00 00
01 17 9d 05 40 93 65 99 ec ac e9 50 e1 c4 4e f2
64 63 42 78 0c 00 00 00 00 00 00 00 22 00 00 00
00 00 00 00 00 dc 5e f1 cf 10 46 c3 e3 59 9e e0
ad 91 84 4b 25 4d 21 d2 05 38 00 00 00 00 00 00
00 4e 00 00 00 00 00 00 00 88 13 00 00 7b 83 d5
44 cc c2 23 c0 57 d2 bf 80 d3 f2 a3 29 82 c3 2c
3c 0d b8 e2 67 48 20 da 50 64 78 3f b0 97 02 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 02 00 00 00 83 d5 44 cc c2 23 c0 57
d2 bf 80 d3 f2 a3 29 82 c3 2c 3c 0d b8 e2 67 48
20 da 50 64 78 3f b0 97 83 d5 44 cc c2 23 c0 57
d2 bf 80 d3 f2 a3 29 82 c3 2c 3c 0d b8 e2 67 48
20 da 50 64 78 3f b0 97 02 00 00 00 00 78 cf d3
d9 82 fc 1c ec a4 2f 15 fc 10 5a 48 2b 82 35 25
76 09 00 00 00 00 00 00 00 0c 00 00 00 00 00 00
00 00 c3 be 85 8a b1 76 0c e4 05 5e 65 cc c3 a3
53 7e 75 bb 72 07 22 00 00 00 00 00 00 00 38 00
00 00 00 00 00 00 ................................. Full message
------------------------------------------------------------------------
0x0000 82 02 00 00 00 00 00 00 ........................... Prefix
0x0008 02 00 00 00 ....................................... Txns header
0x000c 01 00 00 00 88 13 00 00 7b 83 d5 44 cc c2 23 c0
57 d2 bf 80 d3 f2 a3 29 82 c3 2c 3c 0d b8 e2 67
48 20 da 50 64 78 3f b0 97 02 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02
00 00 00 83 d5 44 cc c2 23 c0 57 d2 bf 80 d3 f2
a3 29 82 c3 2c 3c 0d b8 e2 67 48 20 da 50 64 78
3f b0 97 83 d5 44 cc c2 23 c0 57 d2 bf 80 d3 f2
a3 29 82 c3 2c 3c 0d b8 e2 67 48 20 da 50 64 78
3f b0 97 02 00 00 00 00 01 17 9d 05 40 93 65 99
ec ac e9 50 e1 c4 4e f2 64 63 42 78 0c 00 00 00
00 00 00 00 22 00 00 00 00 00 00 00 00 dc 5e f1
cf 10 46 c3 e3 59 9e e0 ad 91 84 4b 25 4d 21 d2
05 38 00 00 00 00 00 00 00 4e 00 00 00 00 00 00
00 ................................................ Txns#0
0x0151 01 00 00 00 88 13 00 00 7b 83 d5 44 cc c2 23 c0
57 d2 bf 80 d3 f2 a3 29 82 c3 2c 3c 0d b8 e2 67
48 20 da 50 64 78 3f b0 97 02 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02
00 00 00 83 d5 44 cc c2 23 c0 57 d2 bf 80 d3 f2
a3 29 82 c3 2c 3c 0d b8 e2 67 48 20 da 50 64 78
3f b0 97 83 d5 44 cc c2 23 c0 57 d2 bf 80 d3 f2
a3 29 82 c3 2c 3c 0d b8 e2 67 48 20 da 50 64 78
3f b0 97 02 00 00 00 00 78 cf d3 d9 82 fc 1c ec
a4 2f 15 fc 10 5a 48 2b 82 35 25 76 09 00 00 00
00 00 00 00 0c 00 00 00 00 00 00 00 00 c3 be 85
8a b1 76 0c e4 05 5e 65 cc c3 a3 53 7e 75 bb 72
07 22 00 00 00 00 00 00 00 38 00 00 00 00 00 00
00 ................................................ Txns#1
```

AnnounceTxnsMessage:
```
48 00 00 00 00 00 00 00 02 00 00 00 83 d5 44 cc
c2 23 c0 57 d2 bf 80 d3 f2 a3 29 82 c3 2c 3c 0d
b8 e2 67 48 20 da 50 64 78 3f b0 97 83 d5 44 cc
c2 23 c0 57 d2 bf 80 d3 f2 a3 29 82 c3 2c 3c 0d
b8 e2 67 48 20 da 50 64 78 3f b0 97 ............... Full message
------------------------------------------------------------------------
0x0000 48 00 00 00 00 00 00 00 ........................... Prefix
0x0008 02 00 00 00 ....................................... Txns header
0x000c 01 00 00 00 83 d5 44 cc c2 23 c0 57 d2 bf 80 d3
f2 a3 29 82 c3 2c 3c 0d b8 e2 67 48 20 da 50 64
78 3f b0 97 ....................................... Txns#0
0x0034 01 00 00 00 83 d5 44 cc c2 23 c0 57 d2 bf 80 d3
f2 a3 29 82 c3 2c 3c 0d b8 e2 67 48 20 da 50 64
78 3f b0 97 ....................................... Txns#1
```

{% endautocrossref %}

### Final remarks
{{% subhead %}}
Expand Down

0 comments on commit fe91cef

Please sign in to comment.