Closed nflaig closed 9 months ago
Motivation
The Beacon api spec currently uses an unspec'd hex type for properties which could use spec'd types instead. Using a spec type allows to enforce stricter validation via pattern and provides better information for consumers of the api spec.
This cleanup also removes some extra diff when deriving types from the consensus spec in the future as proposed in https://github.com/ethereum/beacon-APIs/issues/402.
Description
Motivation
The Beacon api spec currently uses an unspec'd hex type for properties which could use spec'd types instead. Using a spec type allows to enforce stricter validation via pattern and provides better information for consumers of the api spec.
This cleanup also removes some extra diff when deriving types from the consensus spec in the future as proposed in https://github.com/ethereum/beacon-APIs/issues/402.
Description