Skip to content

Commit 820fd0c

Browse files
authored
docs: relax encoded paylaod padding (#2226)
relax encoded paylaod padding
1 parent 7d14a30 commit 820fd0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/spec/src/integration/spec/3-data-structs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The header carries metadata needed to decode back to the original payload. Becau
2424

2525
Version 0x0 specifies the following transformation from the original payload to a sequence of field element:
2626
- For every 31 bytes of the payload, insert a zero byte to produce a 32-byte value that is a valid field element.
27-
- Zero-pad the final chunk so the payload length is a multiple of 32 bytes, and ensure the encoded payload comprises a power-of-two number of 32-byte field elements (32, 64, 128, 256, …) to match EigenDA blob sizing.
27+
- Pad the final chunk so the payload length is a multiple of 32 bytes, and ensure the encoded payload comprises a power-of-two number of 32-byte field elements (32, 64, 128, 256, …) to match EigenDA blob sizing. We recommend to use 0 for all padding for encoded payload.
2828

2929
```solidity
3030
[0x00, version_byte, big-endian uint32 len(payload), 0x00, 0x00,...] +

0 commit comments

Comments
 (0)