Skip to content

Commit 127eaab

Browse files
axicchriseth
authored andcommitted
Add strict encoding mode to the ABI spec
1 parent f3e0bf1 commit 127eaab

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/abi-spec.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,17 @@ would result in the JSON:
556556
557557
.. _abi_packed_mode:
558558

559+
Strict Encoding Mode
560+
====================
561+
562+
Strict encoding mode is the mode that leads to exactly the same encoding as defined in the formal specification above.
563+
This means offsets have to be as small as possible while still not creating overlaps in the data areas and thus no gaps are
564+
allowed.
565+
566+
Usually, ABI decoders are written in a straigthforward way just following offset pointers, but some decoders
567+
might enforce strict mode. The Solidity ABI decoder currently does not enforce strict mode, but the encoder
568+
always creates data in strict mode.
569+
559570
Non-standard Packed Mode
560571
========================
561572

0 commit comments

Comments
 (0)