Skip to main content

Variable: hexUtils

const hexUtils: OvercastUtils;

Defined in: packages/overcast-core/src/protocol/utils.ts:99

The address boundary of the protocol's own encoding: here an address simply is its canonical Bytes32 slot, spelled in hex.

This is what an OvercastUtilsRegistry curates a domain through when no layer was registered for it, and it is a real answer rather than a stub. An indexer's event log spans every domain it has ever scanned, so a store routinely holds slots no configured layer owns; formatting one of those through the wrong layer either throws (an EVM boundary handed a slot with non-zero high bytes) or, worse, silently mislabels it (a Solana boundary, where any 32 bytes are a valid base58 pubkey). Hex is lossless, round-trips, and is exactly what the row already holds — the value is displayed in the protocol's own terms instead of another chain's.

formatAddress is therefore the identity and cannot fail, which is the property a curation path needs. The two input directions still validate: a malformed slot reaching core is a bug at that boundary, not something to wave through.