Skip to content

Commit

Permalink
Update EIP-7495: Mention support for optional fields in motivation
Browse files Browse the repository at this point in the history
Merged by EIP-Bot.
  • Loading branch information
etan-status authored Oct 30, 2023
1 parent 69bab32 commit 9c6742d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EIPS/eip-7495.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Stable containers are currently not representable in SSZ. Adding support provide

2. **Stable merkle proofs:** Merkle proof verifiers that check specific fields of a `StableContainer[N]` do not need continuous updating when future updates introduce additional fields. Common fields always merkleize at the same [generalized indices](https://github.com/ethereum/consensus-specs/blob/67c2f9ee9eb562f7cc02b2ff90d92c56137944e1/ssz/merkle-proofs.md).

3. **Compact serialization:** SSZ serialization is compact; inactive fields do not consume space.
3. **Optional fields:** Current SSZ formats do not support optional fields, prompting designs to use zero values instead. With `StableContainer[N]`, the SSZ serialization is compact; inactive fields do not consume space.

## Specification

Expand Down

0 comments on commit 9c6742d

Please sign in to comment.