Skip to content

Add ERC: Contract-Hosted Application HTML - #1712

Open
z0r0z wants to merge 16 commits into
ethereum:masterfrom
z0r0z:add-contract-hosted-app
Open

z0r0z wants to merge 16 commits into
ethereum:masterfrom
z0r0z:add-contract-hosted-app

Conversation

@z0r0z

@z0r0z z0r0z commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

This proposal introduces a view-only interface (html()) for a contract to serve its own self-contained HTML dapp. Thus the dapp lives in the same trust domain as its bytecode.

@eip-review-bot

eip-review-bot commented Apr 30, 2026 •

Copy link
Copy Markdown
Collaborator

File ERCS/erc-8244.md

Requires 1 more review from Editors: @g11tech, @jochem-brouwer, @samwilsn, @xinbenlv

Comment thread erc-draft_contract_hosted_app.md Resolved
Comment thread erc-draft_contract_hosted_app.md Resolved
@apoorvlathey

Copy link
Copy Markdown

the file erc-8244.md‎ is being added to the root of the repo instead of the ERCS folder, pls fix that

z0r0z added 2 commits July 19, 2026 14:35
Incorporates review feedback from wighawag on the ethereum-magicians
thread: Subresource Integrity for external resources, EIP-6963 provider
discovery, and isolation stated as a property rather than prescribing
an iframe.
Keeps the relaxations from PR #2 (SRI, EIP-6963 discovery, isolation as a
property rather than a prescribed iframe) while retaining as normative the
requirements that carry the proposal's trust guarantees:

- renderer MUST treat the document as untrusted code
- client MUST provide isolation equivalent to a sandboxed iframe
- client MUST gate every signing request through wallet confirmation
- document MUST be able to identify its origin contract
- restore a network constraint, framed around integrity rather than a
  blanket prohibition, so SRI-pinned and content-addressed fetches remain
  possible

Also links EIP-6963 on first mention, as required by the markdown-link-first
lint.
The Abstract claimed no off-chain hosting is involved, which no longer
held once integrity-checked external resources were permitted. It now
states that off-chain hosting is not required and that any external
resource is integrity-checked, preserving the single-trust-domain claim.

Also documents coexistence with ERC-5219 in Backwards Compatibility,
answering an open question from the discussion thread.
@z0r0z

z0r0z commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

requesting review ~~

@lightclient lightclient left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a cool idea! LGTM

@lightclient
lightclient enabled auto-merge (squash) November 14, 2026 10:25

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants