You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: specs/appearances.md
+39-18
Original file line number
Diff line number
Diff line change
@@ -63,58 +63,79 @@ An address has the following formal definition:
63
63
- MUST begin or end with `MIN_NONZERO_BYTES` non-zero bytes.
64
64
This allows for vanity address inclusion of up to `MAX_VANITY_ZERO_CHARS`.
65
65
- MUST NOT be a known precompile
66
-
- When detected within > 20 bytes, 32 bytes MUST appear with left padding (12 leading zero-bytes).
66
+
- When detected within byte sequence of greater than 20 bytes, the bytes MUST appear with left padding (12 leading zero-bytes for the case of a 32 byte sequence).
67
67
The address that meets the criteria is extracted from the source bytes.
68
-
- When inspecting >32 bytes, the bytes MUST first trimmed to a multiple of 32 bytes and divided
68
+
- When inspecting more than 32 bytes, the bytes MUST first trimmed to a multiple of 32 bytes and divided
69
69
into 32 byte sections (length modulo 32) to be examined separately.
70
70
71
71
The following examples show the detection and extraction of an address/addresses
72
72
from a sequence of bytes.
73
73
### Example "address"
74
74
Deposit contract address in a 32 byte hex string with left padding:
Deposit contract address in a 32 byte hex string with right padding. No address is detected because the leftmost 24 characters (12 bytes) must all be zeros:
0 commit comments