1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
//! Recursive length prefix, the encoding a transaction is hashed and sent in,
//! and the one a CREATE address is derived from. Only encoding: nothing here
//! reads one back.
use crateU256;
/// A string of bytes: a single byte under `0x80` is itself, anything else is
/// prefixed with its length.
/// An integer, big-endian with no leading zeros, so zero is the empty string.
/// A 256-bit integer, as [`uint`] writes a narrower one.
/// A 32-byte word read as an integer, as a signature's `r` and `s` are.
/// A list of items that are each already encoded.
/// Short payloads carry their length in the tag; from 56 bytes on, the tag
/// says how many bytes the length itself takes.